summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-14 23:35:24 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-14 23:35:24 +0300
commit45be44cc833bc47991218b90f1bbc1fc6dbd04f4 (patch)
treebd308f35bd049357908e669d5e4e30eb1ae2bf48 /src/map
parent650727ddf52650283652a021539cef5e0d0df05b (diff)
downloadhercules-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')
-rw-r--r--src/map/npc.c2
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);