Merge branch 'pointy-think-crash-fix' into 'next'

A_PointyThink crash fix (patch from #827)

See merge request STJr/SRB2!1970
This commit is contained in:
sphere 2023-05-01 21:18:40 +00:00
commit ccec739860

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;