From 091b8664adf3be6b75ae49314535fcced80b3ec8 Mon Sep 17 00:00:00 2001 From: Nehon Date: Sun, 17 Apr 2016 14:15:48 +0200 Subject: [PATCH] Fixed an issue where Vector3f.NAN constant reference was assigned to an attribute instead of being cloned in AudioNode. --- jme3-core/src/main/java/com/jme3/audio/AudioNode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jme3-core/src/main/java/com/jme3/audio/AudioNode.java b/jme3-core/src/main/java/com/jme3/audio/AudioNode.java index 9f44c82be..d1c7b8ef8 100644 --- a/jme3-core/src/main/java/com/jme3/audio/AudioNode.java +++ b/jme3-core/src/main/java/com/jme3/audio/AudioNode.java @@ -78,7 +78,7 @@ public class AudioNode extends Node implements AudioSource { protected transient AudioData data = null; protected transient volatile AudioSource.Status status = AudioSource.Status.Stopped; protected transient volatile int channel = -1; - protected Vector3f previousWorldTranslation = Vector3f.NAN; + protected Vector3f previousWorldTranslation = Vector3f.NAN.clone(); protected Vector3f velocity = new Vector3f(); protected boolean reverbEnabled = false; protected float maxDistance = 200; // 200 meters