Game/Maps: Instance handling follow-up:

- Fix a bug where a player could maintain a conflicting non-perm solo bind if they were in the instance when invited to group. Closes #16150.
- If a group is created while the leader is in an instance that nobody is bound to, the group will take over the instance and bind to it. This stops the homebind timer when reforming group after disconnects and the like.
This commit is contained in:
treeston committed 2016-01-04 15:48:53 +01:00
1 parent 8a0bbc3869
commit 0f0a51b87a
6 files changed
+45 -33

No files matched your search

+1 -1
View File
@@ -3030,7 +3030,7 @@ bool InstanceMap::AddPlayerToMap(Player* player)
{
if (group)
{
// solo saves should be reset when entering a group
// solo saves should have been reset when the map was loaded
InstanceGroupBind* groupBind = group->GetBoundInstance(this);
if (playerBind && playerBind->save != mapSave)
{