summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-17 14:37:26 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-17 14:37:26 +0300
commit54f34f9f772f49913370f46d2a6628af6c6c6d6b (patch)
tree9e08e0f900515ad1ac8cf2d243d190572e24955d
parentc35b94d29ed9d315298cdd71a2a97a135b51c5cf (diff)
downloadhercules-54f34f9f772f49913370f46d2a6628af6c6c6d6b.tar.gz
hercules-54f34f9f772f49913370f46d2a6628af6c6c6d6b.tar.bz2
hercules-54f34f9f772f49913370f46d2a6628af6c6c6d6b.tar.xz
hercules-54f34f9f772f49913370f46d2a6628af6c6c6d6b.zip
Fix crash while removing invisible wall.
-rw-r--r--src/map/map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/map.c b/src/map/map.c
index b142ed1f3..c64ab86b9 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -5874,7 +5874,7 @@ int do_init(int argc, char *argv[])
map->nick_db = idb_alloc(DB_OPT_BASE);
map->charid_db = idb_alloc(DB_OPT_BASE);
map->regen_db = idb_alloc(DB_OPT_BASE); // efficient status_natural_heal processing
- map->iwall_db = strdb_alloc(DB_OPT_RELEASE_DATA,2*NAME_LENGTH+2+1); // [Zephyrus] Invisible Walls
+ map->iwall_db = strdb_alloc(DB_OPT_DUP_KEY|DB_OPT_RELEASE_DATA, 2*NAME_LENGTH+2+1); // [Zephyrus] Invisible Walls
map->zone_db = strdb_alloc(DB_OPT_DUP_KEY|DB_OPT_RELEASE_DATA, MAP_ZONE_NAME_LENGTH);
map->iterator_ers = ers_new(sizeof(struct s_mapiterator),"map.c::map_iterator_ers",ERS_OPT_CLEAN|ERS_OPT_FLEX_CHUNK);