diff options
author | Porteries Tristan <republicthunderbolt9@gmail.com> | 2015-10-22 21:06:29 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-10-29 13:10:14 +0300 |
commit | 62a973db317af202dff47f2702e6a2f53b8efb2a (patch) | |
tree | 8dafe4ad6791fffa0f89902139623e34e0b067cc | |
parent | 3f067c61a077042d0d89f30aab2f55e82d318532 (diff) |
BGE: Fix T46556: check on null sound datablock pointer.
-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 3b36e094a75..7b62f07dd53 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); |