diff options
author | Porteries Tristan <republicthunderbolt9@gmail.com> | 2015-10-22 21:06:29 +0300 |
---|---|---|
committer | Porteries Tristan <republicthunderbolt9@gmail.com> | 2015-10-22 21:11:05 +0300 |
commit | 586ec500226054252d782d5ce6d3c5e617be5cf8 (patch) | |
tree | f9fb5dcc650d461f8fa4a53825ae262f039a8375 /source/gameengine/Converter/KX_ConvertActuators.cpp | |
parent | ebf197724eb422eea095dd52eac8ea310f5cf758 (diff) |
BGE: Fix T46556: check on null sound datablock pointer.
Diffstat (limited to 'source/gameengine/Converter/KX_ConvertActuators.cpp')
-rw-r--r-- | source/gameengine/Converter/KX_ConvertActuators.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Converter/KX_ConvertActuators.cpp b/source/gameengine/Converter/KX_ConvertActuators.cpp index c6c36c26728..3347255f6f6 100644 --- a/source/gameengine/Converter/KX_ConvertActuators.cpp +++ b/source/gameengine/Converter/KX_ConvertActuators.cpp @@ -421,7 +421,7 @@ void BL_ConvertActuators(const char* maggiename, soundActuatorType); // if we made it mono, we have to free it - if(snd_sound != sound->playback_handle && snd_sound != NULL) + if(sound && snd_sound && snd_sound != sound->playback_handle) AUD_Sound_free(snd_sound); tmpsoundact->SetName(bact->name); |