diff --git a/src/bomb.c b/src/bomb.c index ce3403f..44174a7 100644 --- a/src/bomb.c +++ b/src/bomb.c @@ -13,6 +13,11 @@ draw_bomb (_bomb * bomb) dest; int x=bomb->pos.x >> 8, y= bomb->pos.y >> 8; + + if (x < 0 || y < 0 || x >= bman.fieldsize.x || y >= bman.fieldsize.y) { + d_fatal ("Draw Bomb out of range [%d,%d]\n", x,y); + return; + } if (bomb->state != BS_trigger || ((bomb->state == BS_trigger) && (bomb->to