summaryrefslogtreecommitdiff
path: root/src/emap/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emap/map.c')
-rw-r--r--src/emap/map.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/emap/map.c b/src/emap/map.c
index cc4bae4..cfbffef 100644
--- a/src/emap/map.c
+++ b/src/emap/map.c
@@ -409,6 +409,9 @@ void emap_setgatcell2(int16 m,
j = x + y * map->list[m].xs;
+ if (map->list[m].cell == (struct mapcell *)0xdeadbeaf)
+ map->cellfromcache(&map->list[m]);
+
struct mapcell cell0 = map->gat2cell(gat);
struct mapcell2 *cell = (struct mapcell2 *)&cell0;
struct mapcell2 *cell2 = (struct mapcell2 *)&map->list[m].cell[j];