Core/PacketIO: Fix ticket creation (it was saving wrong data to DB)
TODO: It might be wise to validate map and coordinates sent by the client Closes #6054
This commit is contained in:
@@ -37,7 +37,10 @@ GmTicket::GmTicket(Player* player, WorldPacket& recv_data) : _createTime(time(NU
|
||||
_playerName = player->GetName();
|
||||
_playerGuid = player->GetGUID();
|
||||
|
||||
recv_data >> _mapId;
|
||||
uint32 mapId;
|
||||
recv_data >> mapId; // Map is sent as UInt32!
|
||||
_mapId = mapId;
|
||||
|
||||
recv_data >> _posX;
|
||||
recv_data >> _posY;
|
||||
recv_data >> _posZ;
|
||||
|
||||
Reference in New Issue
Block a user