Fix an index out of bounds exception when moving an

audio node that hasn't been played yet.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7495 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
PSp..om 2011-05-15 05:06:34 +00:00
parent 945683f432
commit 2f415f3919

View File

@ -616,7 +616,7 @@ public class AudioNode extends Node {
super.updateGeometricState(); super.updateGeometricState();
if (updatePos && renderer != null) if (updatePos && channel >= 0)
renderer.updateSourceParam(this, AudioParam.Position); renderer.updateSourceParam(this, AudioParam.Position);
} }