Jump to content

[11897] [Patch] Redondant call of ResetInstance()


cyberium
 Share

Recommended Posts

What bug does the patch fix? What features does the patch add?

No bug, only redondant call of reset instance to try to reset Raid. But it's not possible to reset any raid instance this way.

For which repository revision was the patch created?

latest

Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

none

Who has been writing this patch? Please include either forum user names or email addresses.

me

Patch:

http://paste2.org/p/1888590

diff --git a/src/game/MiscHandler.cpp b/src/game/MiscHandler.cpp
index 9a1af2b..8d4383e 100644
--- a/src/game/MiscHandler.cpp
+++ b/src/game/MiscHandler.cpp
@@ -1401,16 +1401,10 @@ void WorldSession::HandleResetInstancesOpcode( WorldPacket & /*recv_data*/ )
    if (Group *pGroup = _player->GetGroup())
    {
        if (pGroup->IsLeader(_player->GetObjectGuid()))
-        {
            pGroup->ResetInstances(INSTANCE_RESET_ALL, false, _player);
-            pGroup->ResetInstances(INSTANCE_RESET_ALL, true,_player);
-        }
    }
    else
-    {
        _player->ResetInstances(INSTANCE_RESET_ALL, false);
-        _player->ResetInstances(INSTANCE_RESET_ALL, true);
-    }
}

void WorldSession::HandleSetDungeonDifficultyOpcode( WorldPacket & recv_data )

Edit: Made a mistake in first version sorry.

Link to comment
Share on other sites

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use