From f1c3b3e680cd1cc3f8ab841a5a3beb809c530834 Mon Sep 17 00:00:00 2001 From: Steve Date: Fri, 23 Feb 2018 19:25:31 +0000 Subject: [PATCH] Set Bob to gone when killed, to avoid crash. --- src/entities/blobs/bob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entities/blobs/bob.c b/src/entities/blobs/bob.c index 52f227d..58ae00e 100644 --- a/src/entities/blobs/bob.c +++ b/src/entities/blobs/bob.c @@ -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));