summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index f19eb4d4a..878c1c934 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -13,6 +13,7 @@
#include "mob.h"
#include "pet.h"
#include "homunculus.h"
+#include "instance.h"
#include "mercenary.h"
#include "skill.h"
#include "clif.h"
@@ -1843,7 +1844,7 @@ int unit_remove_map_(struct block_list *bl, int clrtype, const char* file, int l
if( map[bl->m].instance_id )
{
instance[map[bl->m].instance_id].users--;
- map_instance_check_idle(map[bl->m].instance_id);
+ instance_check_idle(map[bl->m].instance_id);
}
sd->state.debug_remove_map = 1; // temporary state to track double remove_map's [FlavioJS]
sd->debug_file = file;