From 5aac3f90243204ae8ef222375feccb7dc1898fa0 Mon Sep 17 00:00:00 2001 From: Freeyorp Date: Fri, 9 Apr 2010 02:52:10 +1200 Subject: Fix npcwarp --- src/map/script.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/map/script.c') diff --git a/src/map/script.c b/src/map/script.c index adc9d36..84cf944 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -6875,8 +6875,10 @@ int buildin_npcwarp (struct script_state *st) return -1; npc_enable (npc, 0); + map_delblock(&nd->bl); /* [Freeyorp] */ nd->bl.x = x; nd->bl.y = y; + map_addblock(&nd->bl); npc_enable (npc, 1); return 0; -- cgit v1.2.3-70-g09d2