Add nullptr check to corrupt sound protection, thanks to Rye for this and the AO crash fix

master
Zi Ree 2024-01-12 04:29:33 +01:00
parent bb69ff2e6a
commit b8916c0e30
1 changed files with 1 additions and 1 deletions

View File

@ -4878,7 +4878,7 @@ void process_sound_trigger(LLMessageSystem *msg, void **)
msg->getUUIDFast(_PREHASH_SoundData, _PREHASH_ObjectID, object_id);
// <FS:ND> Protect against corrupted sounds
if( gAudiop->isCorruptSound( sound_id ) )
if (gAudiop && gAudiop->isCorruptSound(sound_id))
return;
// </FS:ND>