Commits

Bart van Strien  committed 305ae1a

Fix setVolumeLimits (issue #537)

  • Participants
  • Parent commits 41d8e44

Comments (0)

Files changed (1)

File src/modules/audio/wrap_Source.cpp

 	if (vmin < .0f || vmin > 1.f || vmax < .0f || vmax > 1.f)
 		return luaL_error(L, "Invalid volume limits: [%f:%f]. Must be in [0:1]", vmin, vmax);
 	t->setMinVolume(vmin);
-	t->setMaxVolume(vmin);
+	t->setMaxVolume(vmax);
 	return 0;
 }