summaryrefslogtreecommitdiff
path: root/src/map/instance.c
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-05-23 09:28:09 +0200
committerKenpachi Developer <Kenpachi.Developer@gmx.de>2020-06-01 23:34:23 +0200
commit9b514dfcb3f185d7f12024ec252eb3081b68cad3 (patch)
tree6a4d86486ea6b8d64031fb017e71a77e90a892c0 /src/map/instance.c
parent3635ef96887de748ac053e1ebd51f0deed7f9b6c (diff)
downloadhercules-9b514dfcb3f185d7f12024ec252eb3081b68cad3.tar.gz
hercules-9b514dfcb3f185d7f12024ec252eb3081b68cad3.tar.bz2
hercules-9b514dfcb3f185d7f12024ec252eb3081b68cad3.tar.xz
hercules-9b514dfcb3f185d7f12024ec252eb3081b68cad3.zip
Use account ID instead of character ID for IOT_CHAR in instance_force_destroy()
Diffstat (limited to 'src/map/instance.c')
-rw-r--r--src/map/instance.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/instance.c b/src/map/instance.c
index 1104b7e88..95b1b2baa 100644
--- a/src/map/instance.c
+++ b/src/map/instance.c
@@ -734,7 +734,7 @@ static void instance_force_destroy(struct map_session_data *sd)
switch (instance->list[i].owner_type) {
case IOT_CHAR:
{
- if (instance->list[i].owner_id != sd->status.char_id)
+ if (instance->list[i].owner_id != sd->status.account_id)
continue;
break;
}