Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[11938] Replace use of HashMapFolder.Find<Player> with ObjectAccessor…

…::FindPlayer wrapper
  • Loading branch information...
commit 36589ba859851400b59832b40be94771f9116bff 1 parent aa681a1
@Schmoozerd Schmoozerd authored
View
4 src/game/GroupHandler.cpp
@@ -811,8 +811,8 @@ void WorldSession::HandleRequestPartyMemberStatsOpcode( WorldPacket &recv_data )
ObjectGuid guid;
recv_data >> guid;
- Player * player = HashMapHolder<Player>::Find(guid);
- if(!player)
+ Player* player = ObjectAccessor::FindPlayer(guid, false);
+ if (!player)
{
WorldPacket data(SMSG_PARTY_MEMBER_STATS_FULL, 3+4+2);
data << uint8(0); // only for SMSG_PARTY_MEMBER_STATS_FULL, probably arena/bg related
View
4 src/game/ObjectAccessor.cpp
@@ -78,7 +78,7 @@ Player* ObjectAccessor::FindPlayer(ObjectGuid guid, bool inWorld /*= true*/)
if (!guid)
return NULL;
- Player* plr = HashMapHolder<Player>::Find(guid);;
+ Player* plr = HashMapHolder<Player>::Find(guid);
if (!plr || (!plr->IsInWorld() && inWorld))
return NULL;
@@ -107,7 +107,7 @@ ObjectAccessor::SaveAllPlayers()
void ObjectAccessor::KickPlayer(ObjectGuid guid)
{
- if (Player* p = HashMapHolder<Player>::Find(guid))
+ if (Player* p = ObjectAccessor::FindPlayer(guid, false))
{
WorldSession* s = p->GetSession();
s->KickPlayer(); // mark session to remove at next session list update
View
2  src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
- #define REVISION_NR "11937"
+ #define REVISION_NR "11938"
#endif // __REVISION_NR_H__
Please sign in to comment.
Something went wrong with that request. Please try again.