Commit: 8af2029ca53cf99ea47ccbb054048366ddfca297
Author: Campbell Barton
Date:   Tue Oct 13 08:43:41 2015 +1100
Branches: blender-v2.76a-release
https://developer.blender.org/rB8af2029ca53cf99ea47ccbb054048366ddfca297

Fix T46458: BGE Crash on load

regression from 96dd213e7

===================================================================

M       source/gameengine/Ketsji/KX_SoundActuator.cpp

===================================================================

diff --git a/source/gameengine/Ketsji/KX_SoundActuator.cpp 
b/source/gameengine/Ketsji/KX_SoundActuator.cpp
index 02b1071..f6f09dd 100644
--- a/source/gameengine/Ketsji/KX_SoundActuator.cpp
+++ b/source/gameengine/Ketsji/KX_SoundActuator.cpp
@@ -65,7 +65,7 @@ KX_SoundActuator::KX_SoundActuator(SCA_IObject* gameobj,
                                                                   
KX_SOUNDACT_TYPE type)//,
                                                                   : 
SCA_IActuator(gameobj, KX_ACT_SOUND)
 {
-       m_sound = AUD_Sound_copy(sound);
+       m_sound = sound ? AUD_Sound_copy(sound) : NULL;
        m_handle = NULL;
        m_volume = volume;
        m_pitch = pitch;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to