diff options
Diffstat (limited to 'src/emap/map.c')
-rw-r--r-- | src/emap/map.c | 3 |
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]; |