mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 09:31:14 +00:00
- fixed: ACS's LocalAmbientSound did not check the activator before calling its methods.
# Conflicts: # src/p_acs.cpp
This commit is contained in:
parent
06f84d2420
commit
c7b9781c57
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue