Set Bob to gone when killed, to avoid crash.

This commit is contained in:
Steve 2018-02-23 19:25:31 +00:00
parent bf1e8f64f6
commit f1c3b3e680
1 changed files with 1 additions and 1 deletions

View File

@ -363,7 +363,7 @@ static void doDying(void)
if (world.bob->health <= -(FPS * 2))
{
world.bob->alive = ALIVE_DEAD;
world.bob->flags |= EF_GONE;
throwFleshChunks(world.bob->x + world.bob->w / 2, world.bob->y + world.bob->h / 2, rrnd(3, 6));