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:
Nay
2012-04-07 14:34:55 +01:00
parent 1fccaae4b0
commit aa9c76f50a
+4 -1
View File
@@ -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;