|
@@ -21,6 +21,7 @@
|
|
|
#include "pc.h"
|
|
|
#include "status.h"
|
|
|
#include "mob.h"
|
|
|
+#include "npc.h" // npc_setcells(), npc_unsetcells()
|
|
|
#include "chat.h"
|
|
|
#include "itemdb.h"
|
|
|
#include "storage.h"
|
|
@@ -466,7 +467,7 @@ int map_moveblock(struct block_list *bl, int x1, int y1, unsigned int tick)
|
|
|
status_change_end(bl, SC_MAGICROD, -1);
|
|
|
}
|
|
|
} else
|
|
|
- if (bl->type == BL_NPC) npc_unsetcells((BL_NPC*)bl);
|
|
|
+ if (bl->type == BL_NPC) npc_unsetcells((TBL_NPC*)bl);
|
|
|
|
|
|
if (moveblock) map_delblock_sub(bl,0);
|
|
|
#ifdef CELL_NOSTACK
|
|
@@ -491,7 +492,7 @@ int map_moveblock(struct block_list *bl, int x1, int y1, unsigned int tick)
|
|
|
}
|
|
|
}
|
|
|
} else
|
|
|
- if (bl->type == BL_NPC) npc_setcells((BL_NPC*)bl);
|
|
|
+ if (bl->type == BL_NPC) npc_setcells((TBL_NPC*)bl);
|
|
|
return 0;
|
|
|
}
|
|
|
|