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

# Conflicts:
#	src/p_acs.cpp
This commit is contained in:
Christoph Oelckers 2019-03-02 23:01:42 +01:00 committed by drfrag
parent 06f84d2420
commit c7b9781c57

View file

@ -8984,7 +8984,7 @@ scriptwait:
case PCD_LOCALAMBIENTSOUND:
lookup = FBehavior::StaticLookupString (STACK(2));
if (lookup != NULL && activator->CheckLocalView (consoleplayer))
if (lookup != NULL && activator && activator->CheckLocalView (consoleplayer))
{
S_Sound (CHAN_AUTO,
lookup,