Skip to content

Commit 369d4ee

Browse files
committed
Fixed another memory bounds check error.
1 parent 9adef74 commit 369d4ee

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

common/build.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
/* This file is generated by git */
2-
#define BUILD "416"
2+
#define BUILD "417"

common/map.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -764,9 +764,9 @@ static void map_add_river(dw_map *map) {
764764
--x;
765765
else if (maindir == 3) /* east */
766766
++x;
767-
}
768-
if (map_ob(x) || map_ob(y)) {
769-
return;
767+
if (map_ob(x) || map_ob(y)) {
768+
return;
769+
}
770770
}
771771
while (map->walkable[x][y] || map->tiles[x][y] != TILE_WATER) {
772772
map->tiles[x][y] = TILE_WATER;

0 commit comments

Comments
 (0)