Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPorteries Tristan <republicthunderbolt9@gmail.com>2015-10-22 21:06:29 +0300
committerPorteries Tristan <republicthunderbolt9@gmail.com>2015-10-22 21:11:05 +0300
commit586ec500226054252d782d5ce6d3c5e617be5cf8 (patch)
treef9fb5dcc650d461f8fa4a53825ae262f039a8375 /source/gameengine/Converter
parentebf197724eb422eea095dd52eac8ea310f5cf758 (diff)
BGE: Fix T46556: check on null sound datablock pointer.
Diffstat (limited to 'source/gameengine/Converter')
-rw-r--r--source/gameengine/Converter/KX_ConvertActuators.cpp2
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);