From 80fc08a46524a1b57dc76eb79199b9fa5d7fd5dc Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sun, 6 Feb 2022 02:56:55 +0100 Subject: [PATCH] fixed crash bug when player was killed by explosion --- src/game.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game.c b/src/game.c index 87c054a2..43a0b8c2 100644 --- a/src/game.c +++ b/src/game.c @@ -5993,6 +5993,10 @@ static void Explode(int ex, int ey, int phase, int mode) return; } + // this can happen if the player was just killed by an explosion + if (GfxElement[x][y] == EL_UNDEFINED) + GfxElement[x][y] = EL_EMPTY; + if (phase == last_phase) { int element; -- 2.34.1