summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
474af7a)
This issue was found by using Clang with option "-fsanitize=undefined".
player->active = TRUE;
// remove potentially duplicate players
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];
StorePlayer[jx][jy] = 0;
StorePlayer[x][y] = Tile[x][y];