diff options
author | Nay <dnpd.dd@gmail.com> | 2012-04-07 14:34:55 +0100 |
---|---|---|
committer | Nay <dnpd.dd@gmail.com> | 2012-04-07 14:34:55 +0100 |
commit | aa9c76f50ac6ba5f150e99be90d4e17f8c8c3850 (patch) | |
tree | a2ef8775dbea92cdf03d25f24760e5f9ff6d0109 | |
parent | 1fccaae4b00d0a4e6019ea2735e32ad7dd1962f4 (diff) |
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
-rwxr-xr-x | src/server/game/Tickets/TicketMgr.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/game/Tickets/TicketMgr.cpp b/src/server/game/Tickets/TicketMgr.cpp index 68e28014319..af23a3003ad 100755 --- a/src/server/game/Tickets/TicketMgr.cpp +++ b/src/server/game/Tickets/TicketMgr.cpp @@ -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; |