From dc05a4b4aa23dc5b57c83d99b3b79a0e5db15af5 Mon Sep 17 00:00:00 2001 From: newrage Date: Fri, 19 Mar 2021 22:23:47 +0200 Subject: [PATCH] Fix Player UnbindAllInstances for AC --- PlayerMethods.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/PlayerMethods.h b/PlayerMethods.h index 6da4bee..9ecaf80 100644 --- a/PlayerMethods.h +++ b/PlayerMethods.h @@ -2463,10 +2463,14 @@ namespace LuaPlayer for (BoundInstancesMap::const_iterator itr = binds.begin(); itr != binds.end();) { if (itr->first != player->GetMapId()) - //player->UnbindInstance(itr, Difficulty(i)); + { sInstanceSaveMgr->PlayerUnbindInstance(player->GetGUIDLow(), itr->first, Difficulty(i), true, player); + itr = binds.begin(); + } else + { ++itr; + } } } #else