From 9b514dfcb3f185d7f12024ec252eb3081b68cad3 Mon Sep 17 00:00:00 2001
From: Kenpachi Developer <Kenpachi.Developer@gmx.de>
Date: Sat, 23 May 2020 09:28:09 +0200
Subject: Use account ID instead of character ID for IOT_CHAR in
 instance_force_destroy()

---
 src/map/instance.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 		}
-- 
cgit v1.2.3-70-g09d2