From f1b746d7701b0480ad177be34e28b452c4f5e7f8 Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Wed, 6 Jan 2016 23:47:16 +0300
Subject: Replace some map->id2bl to map->id2nd.

---
 src/emap/script.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/emap/script.c b/src/emap/script.c
index 0cadc03..b953912 100644
--- a/src/emap/script.c
+++ b/src/emap/script.c
@@ -389,7 +389,7 @@ BUILDIN(setCamNpc)
             return false;
         }
 
-        nd = (TBL_NPC *) map->id2bl (st->oid);
+        nd = map->id2nd(st->oid);
     }
     if (!nd)
     {
@@ -453,7 +453,7 @@ BUILDIN(npcTalk3)
     }
     else
     {
-        nd = (TBL_NPC *) map->id2bl (st->oid);
+        nd = map->id2nd(st->oid);
         str = script_getstr(st, 2);
     }
 
@@ -943,7 +943,7 @@ BUILDIN(setNpcDir)
             return false;
         }
 
-        nd = (TBL_NPC *) map->id2bl (st->oid);
+        nd = map->id2nd(st->oid);
         newdir = script_getnum(st, 2);
     }
     if (!nd)
@@ -1603,7 +1603,7 @@ BUILDIN(npcSit)
             return false;
         }
 
-        nd = (TBL_NPC *) map->id2bl (st->oid);
+        nd = map->id2nd(st->oid);
     }
     if (!nd)
     {
@@ -1633,7 +1633,7 @@ BUILDIN(npcStand)
             return false;
         }
 
-        nd = (TBL_NPC *) map->id2bl (st->oid);
+        nd = map->id2nd(st->oid);
     }
     if (!nd)
     {
@@ -1648,7 +1648,7 @@ BUILDIN(npcStand)
 
 BUILDIN(npcWalkTo)
 {
-    struct npc_data *nd = (struct npc_data *)map->id2bl(st->oid);
+    struct npc_data *nd = map->id2nd(st->oid);
     int x = 0, y = 0;
 
     x = script_getnum(st, 2);
-- 
cgit v1.2.3-70-g09d2