From 45be44cc833bc47991218b90f1bbc1fc6dbd04f4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 14 Nov 2015 23:35:24 +0300 Subject: Fix npc initialisation in first map (m == 0). --- src/map/npc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/npc.c') 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); -- cgit v1.2.3-60-g2f50