diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-14 23:35:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-14 23:35:24 +0300 |
commit | 45be44cc833bc47991218b90f1bbc1fc6dbd04f4 (patch) | |
tree | bd308f35bd049357908e669d5e4e30eb1ae2bf48 /src/map/npc.c | |
parent | 650727ddf52650283652a021539cef5e0d0df05b (diff) | |
download | hercules-45be44cc833bc47991218b90f1bbc1fc6dbd04f4.tar.gz hercules-45be44cc833bc47991218b90f1bbc1fc6dbd04f4.tar.bz2 hercules-45be44cc833bc47991218b90f1bbc1fc6dbd04f4.tar.xz hercules-45be44cc833bc47991218b90f1bbc1fc6dbd04f4.zip |
Fix npc initialisation in first map (m == 0).
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 17a8b9414..9573c1c6f 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -3016,7 +3016,7 @@ void npc_add_to_location(struct npc_data *nd) { nullpo_retv(nd); - if (nd->bl.m > 0) { + if (nd->bl.m >= 0) { map->addnpc(nd->bl.m, nd); npc->setcells(nd); map->addblock(&nd->bl); |