mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-20 08:20:52 +00:00
A_PointyThink crash fix (patch from #827)
Fixes A_PointyThink crashing in certain scenarios
This commit is contained in:
parent
e5a1fee759
commit
2d3153079b
1 changed files with 4 additions and 0 deletions
|
@ -1589,6 +1589,10 @@ void A_PointyThink(mobj_t *actor)
|
|||
if (!actor->tracer) // For some reason we do not have spike balls...
|
||||
return;
|
||||
|
||||
// Catch case where actor lastlook is -1 (which segfaults the following blocks)
|
||||
if (actor->lastlook < 0)
|
||||
return;
|
||||
|
||||
// Position spike balls relative to the value of 'lastlook'.
|
||||
ball = actor->tracer;
|
||||
|
||||
|
|
Loading…
Reference in a new issue