Clear UFO pointer if its object was removed (matches up with general mobjthinker P_SetTarget handling)

This commit is contained in:
toaster 2022-12-31 18:45:04 +00:00
parent 44555be704
commit 39e68d1ae3

View file

@ -119,6 +119,11 @@ void K_TickSpecialStage(void)
return;
}
if (P_MobjWasRemoved(specialstageinfo.ufo))
{
P_SetTarget(&specialstageinfo.ufo, NULL);
}
K_MoveExitBeam();
}