mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-27 22:42:57 +00:00
- fixed: ACS's LocalAmbientSound did not check the activator before calling its methods.
This commit is contained in:
parent
0dc3485990
commit
eacc6c8e08
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue