summaryrefslogtreecommitdiff
path: root/src/map/instance.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-01-18 19:46:48 +0100
committerHaru <haru@dotalux.com>2015-01-18 19:46:48 +0100
commitc90a099b21d015fedb279aab33602106a235d670 (patch)
treef37ab46c6ff925741bbef8e5b077fed8a075641d /src/map/instance.c
parent83077740c7c996d198617d45a1916cd31ff38e9a (diff)
downloadhercules-c90a099b21d015fedb279aab33602106a235d670.tar.gz
hercules-c90a099b21d015fedb279aab33602106a235d670.tar.bz2
hercules-c90a099b21d015fedb279aab33602106a235d670.tar.xz
hercules-c90a099b21d015fedb279aab33602106a235d670.zip
Follow-up to 83077740c7c996d198617d45a1916cd31ff38e9a
Fixed compile error in instance.c Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/instance.c')
-rw-r--r--src/map/instance.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/instance.c b/src/map/instance.c
index 168a03da6..890d455ff 100644
--- a/src/map/instance.c
+++ b/src/map/instance.c
@@ -12,6 +12,7 @@
#include <string.h>
#include <time.h>
+#include "../config/core.h" // CELL_NOSTACK
#include "clif.h"
#include "map.h"
#include "npc.h"
@@ -207,7 +208,9 @@ int instance_add_map(const char *name, int instance_id, bool usebasename, const
// Appropriately clear cell data
for(j = 0; j < num_cell; j++) {
+#ifdef CELL_NOSTACK
map->list[im].cell[j].cell_bl = 0;
+#endif // CELL_NOSTACK
map->list[im].cell[j].basilica = 0;
map->list[im].cell[j].icewall = 0;
map->list[im].cell[j].npc = 0;