mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Fix Player UnbindAllInstances for AC
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user