Fix compiling errors, thanks to toaster.

This commit is contained in:
sphere 2019-09-26 23:15:52 +02:00
parent 264c60fb70
commit bc128dffdc
1 changed files with 2 additions and 2 deletions

View File

@ -4607,7 +4607,7 @@ static void P_Boss3Thinker(mobj_t *mobj)
{
UINT8 i, numtospawn = 24;
angle_t ang = 0, interval = FixedAngle((360 << FRACBITS) / numtospawn);
mobj_t *shock, *sfirst, *sprev;
mobj_t *shock, *sfirst, *sprev = NULL;
mobj->movecount = mobj->health+1;
mobj->movefactor = -512*FRACUNIT;
@ -4622,7 +4622,7 @@ static void P_Boss3Thinker(mobj_t *mobj)
if (i % 2 == 0)
P_SetMobjState(shock, shock->state->nextstate);
if (i == 0)
if (!sprev)
sfirst = shock;
else
{