From: Holger Schemel Date: Sun, 6 Feb 2022 01:56:55 +0000 (+0100) Subject: fixed crash bug when player was killed by explosion X-Git-Tag: 4.3.1.1~9 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=80fc08a46524a1b57dc76eb79199b9fa5d7fd5dc;p=rocksndiamonds.git fixed crash bug when player was killed by explosion --- 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;