Core/Player: Send calendar raid lockout remove before removing player from instance save (may invalidate instance save)
This commit is contained in:
@@ -18318,10 +18318,10 @@ void Player::UnbindInstance(BoundInstancesMap::iterator &itr, Difficulty difficu
|
||||
CharacterDatabase.Execute(stmt);
|
||||
}
|
||||
|
||||
itr->second.save->RemovePlayer(this); // save can become invalid
|
||||
if (itr->second.perm)
|
||||
GetSession()->SendCalendarRaidLockout(itr->second.save, false);
|
||||
|
||||
itr->second.save->RemovePlayer(this); // save can become invalid
|
||||
m_boundInstances[difficulty].erase(itr++);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user