X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fgame.c;fp=src%2Fgame.c;h=3a2c1a11db4b5bf290f038fe0124b6d59faaf6a2;hp=97617bb336003beddee02f2b2f1d37b73ea81d49;hb=64d673ee2b6655f0ade45a3329ee08e32522b3c4;hpb=474af7a42d0892f8a50ee53798996d6bd2cd9f60 diff --git a/src/game.c b/src/game.c index 97617bb3..3a2c1a11 100644 --- a/src/game.c +++ b/src/game.c @@ -1784,7 +1784,7 @@ static void InitPlayerField(int x, int y, int element, boolean init_game) player->active = TRUE; // remove potentially duplicate players - if (StorePlayer[jx][jy] == Tile[x][y]) + if (IN_LEV_FIELD(jx, jy) && StorePlayer[jx][jy] == Tile[x][y]) StorePlayer[jx][jy] = 0; StorePlayer[x][y] = Tile[x][y];