mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 04:00:42 +00:00
- RR: fixed crash in function that handles acts of mass destruction (like blowing up gas stations.)
With bad setups 'spr' could be left uninitialized. This crashed E1L1 of 'The Hickston Swamp' mod.
This commit is contained in:
parent
15635ec7c8
commit
20ca676539
1 changed files with 2 additions and 2 deletions
|
@ -4095,10 +4095,10 @@ void destroyit(DDukeActor *actor)
|
|||
{
|
||||
int lotag, hitag;
|
||||
int wi, wj;
|
||||
DDukeActor* spr;
|
||||
int wallstart2, wallend2;
|
||||
int sectnum;
|
||||
int wallstart, wallend;
|
||||
DDukeActor* spr = nullptr;
|
||||
|
||||
hitag = 0;
|
||||
DukeSectIterator it1(actor->s->sectnum);
|
||||
|
@ -4128,7 +4128,7 @@ void destroyit(DDukeActor *actor)
|
|||
}
|
||||
}
|
||||
}
|
||||
if (spr->s->sectnum != it_sect)
|
||||
if (spr && spr->s->sectnum != it_sect)
|
||||
if (lotag == a2->s->lotag)
|
||||
{
|
||||
sectnum = spr->s->sectnum;
|
||||
|
|
Loading…
Reference in a new issue