- fixed: ACS's LocalAmbientSound did not check the activator before calling its methods.

This commit is contained in:
Christoph Oelckers 2019-03-02 23:01:42 +01:00
parent 0dc3485990
commit eacc6c8e08

View file

@ -8869,7 +8869,7 @@ scriptwait:
case PCD_LOCALAMBIENTSOUND:
lookup = Level->Behaviors.LookupString (STACK(2));
if (lookup != NULL && activator->CheckLocalView())
if (lookup != NULL && activator && activator->CheckLocalView())
{
S_Sound (CHAN_AUTO,
lookup,