A_PointyThink crash fix (patch from #827)

Fixes A_PointyThink crashing in certain scenarios
This commit is contained in:
SteelT 2023-04-21 12:57:37 -04:00
parent e5a1fee759
commit 2d3153079b

View file

@ -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;