forked from bartvdbraak/blender
BGE: Fix T46556: check on null sound datablock pointer.
This commit is contained in:
parent
ebf197724e
commit
586ec50022
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user