mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[6953] Cleanup packed guids write/read code.
* Remove unused function writeGUID and move function readGUID (with some changes) to ByteBuffer class. * Remove now empty Tools.cpp/Tools.h from project.
This commit is contained in:
parent
cc4b43c65d
commit
9c5dab1248
10 changed files with 32 additions and 172 deletions
|
|
@ -41,7 +41,6 @@
|
|||
#include "SpellAuras.h"
|
||||
#include "Pet.h"
|
||||
#include "SocialMgr.h"
|
||||
#include "Tools.h"
|
||||
|
||||
void WorldSession::HandleRepopRequestOpcode( WorldPacket & /*recv_data*/ )
|
||||
{
|
||||
|
|
@ -1649,7 +1648,7 @@ void WorldSession::HandleInspectAchievements( WorldPacket & recv_data )
|
|||
{
|
||||
CHECK_PACKET_SIZE(recv_data, 1);
|
||||
uint64 guid;
|
||||
if(!readGUID(recv_data, guid))
|
||||
if(!recv_data.readPackGUID(guid))
|
||||
return;
|
||||
|
||||
Player *player = objmgr.GetPlayer(guid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue