From 2f415f3919abed4df45d61888dc26cc268e3e1d9 Mon Sep 17 00:00:00 2001 From: "PSp..om" Date: Sun, 15 May 2011 05:06:34 +0000 Subject: [PATCH] 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 --- engine/src/core/com/jme3/audio/AudioNode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/core/com/jme3/audio/AudioNode.java b/engine/src/core/com/jme3/audio/AudioNode.java index 9659dcd83..fa45b8fa0 100644 --- a/engine/src/core/com/jme3/audio/AudioNode.java +++ b/engine/src/core/com/jme3/audio/AudioNode.java @@ -616,7 +616,7 @@ public class AudioNode extends Node { super.updateGeometricState(); - if (updatePos && renderer != null) + if (updatePos && channel >= 0) renderer.updateSourceParam(this, AudioParam.Position); }