From 51e1c8fd61d0e8270c7502095c73cf58f8beac62 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 7 Nov 2017 19:18:06 +0300 Subject: Update from new hercules. Removed npc vd recreation because it already fixed in hercules. --- src/emap/script_buildins.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/emap/script_buildins.c') diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c index 4c32a9a..b5cd601 100644 --- a/src/emap/script_buildins.c +++ b/src/emap/script_buildins.c @@ -813,7 +813,7 @@ BUILDIN(setNpcSex) sex = script_getnum(st, 3); } - if (!nd || !nd->vd) + if (!nd) { ShowWarning("npc not found\n"); script->reportsrc(st); @@ -821,7 +821,7 @@ BUILDIN(setNpcSex) } clif->clearunit_area(&nd->bl, CLR_OUTSIGHT); - nd->vd->sex = sex; + nd->vd.sex = sex; clif->spawn(&nd->bl); return true; } @@ -1386,7 +1386,7 @@ BUILDIN(npcSit) script->reportsrc(st); return false; } - nd->vd->dead_sit = 2; + nd->vd.dead_sit = 2; clif->sitting(&nd->bl); return true; } @@ -1416,7 +1416,7 @@ BUILDIN(npcStand) script->reportsrc(st); return false; } - nd->vd->dead_sit = 0; + nd->vd.dead_sit = 0; clif->standing(&nd->bl); return true; } @@ -1440,7 +1440,7 @@ BUILDIN(npcWalkTo) { status_calc_npc(nd, SCO_NONE); } - nd->vd->dead_sit = 0; + nd->vd.dead_sit = 0; script_pushint(st, unit->walktoxy(&nd->bl,x,y,0)); return true; } -- cgit v1.2.3-60-g2f50