diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-10-13 00:43:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-10-13 00:43:41 +0300 |
commit | e32430df34b48bfc8b069e48d11589b8a5aabf83 (patch) | |
tree | 788fef6cd7aeb84bdc18984e6c0a3853f35e59db /source | |
parent | cee8a3148ca6c4c970a6f4e2b5c896b11d877496 (diff) |
Fix T46458: BGE Crash on load
regression from 96dd213e7
Diffstat (limited to 'source')
-rw-r--r-- | source/gameengine/Ketsji/KX_SoundActuator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_SoundActuator.cpp b/source/gameengine/Ketsji/KX_SoundActuator.cpp index 02b1071e267..f6f09dd3bda 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; |