From 62a973db317af202dff47f2702e6a2f53b8efb2a Mon Sep 17 00:00:00 2001 From: Porteries Tristan Date: Thu, 22 Oct 2015 20:06:29 +0200 Subject: BGE: Fix T46556: check on null sound datablock pointer. --- source/gameengine/Converter/KX_ConvertActuators.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3