mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- added null pointer checks to locked door sound checks in RR.
This originally accessed undefined memory when no sprite was involved. Fixes #157
This commit is contained in:
parent
976675c816
commit
59c72c923e
1 changed files with 2 additions and 2 deletions
|
@ -2740,7 +2740,7 @@ void checksectors_r(int snum)
|
|||
operatesectors(neartagsector, p->GetActor());
|
||||
else
|
||||
{
|
||||
if (neartagsprite->spriteextra > 3)
|
||||
if (neartagsprite && neartagsprite->spriteextra > 3)
|
||||
S_PlayActorSound(99, pact);
|
||||
else
|
||||
S_PlayActorSound(419, pact);
|
||||
|
@ -2761,7 +2761,7 @@ void checksectors_r(int snum)
|
|||
operatesectors(p->GetActor()->s.sectnum, p->GetActor());
|
||||
else
|
||||
{
|
||||
if (neartagsprite->spriteextra > 3)
|
||||
if (neartagsprite && neartagsprite->spriteextra > 3)
|
||||
S_PlayActorSound(99, pact);
|
||||
else
|
||||
S_PlayActorSound(419, pact);
|
||||
|
|
Loading…
Reference in a new issue