Permalink
Browse files

[11897] Remove redundant call of ResetInstance - Raids cannot be rese…

…t at all

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
  • Loading branch information...
cyberium authored and Schmoozerd committed Jan 31, 2012
1 parent bd217fb commit 96fb4cbbe5e8e362352ccb21319dacb394c9239a
Showing with 3 additions and 9 deletions.
  1. +2 −8 src/game/MiscHandler.cpp
  2. +1 −1 src/shared/revision_nr.h
View
@@ -1394,23 +1394,17 @@ void WorldSession::HandleTimeSyncResp( WorldPacket & recv_data )
_player->m_timeSyncClient = clientTicks;
}
-void WorldSession::HandleResetInstancesOpcode( WorldPacket & /*recv_data*/ )
+void WorldSession::HandleResetInstancesOpcode(WorldPacket& /*recv_data*/)
{
DEBUG_LOG("WORLD: CMSG_RESET_INSTANCES");
- if (Group *pGroup = _player->GetGroup())
+ 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 )
View
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
- #define REVISION_NR "11896"
+ #define REVISION_NR "11897"
#endif // __REVISION_NR_H__

0 comments on commit 96fb4cb

Please sign in to comment.