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
3.0
PSp..om 14 years ago
parent 945683f432
commit 2f415f3919
  1. 2
      engine/src/core/com/jme3/audio/AudioNode.java

@ -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);
} }

Loading…
Cancel
Save