Fix T46458: BGE Crash on load

regression from 96dd213e7
This commit is contained in:
Campbell Barton 2015-10-13 08:43:41 +11:00
parent cee8a3148c
commit e32430df34
Notes: blender-bot 2023-02-14 08:32:22 +01:00
Referenced by issue #46458, Blender Game doesn't load.
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ KX_SoundActuator::KX_SoundActuator(SCA_IObject* gameobj,
KX_SOUNDACT_TYPE type)//,
: SCA_IActuator(gameobj, KX_ACT_SOUND)
{
m_sound = AUD_Sound_copy(sound);
m_sound = sound ? AUD_Sound_copy(sound) : NULL;
m_handle = NULL;
m_volume = volume;
m_pitch = pitch;