diff options
author | Machiavelli <none@none> | 2010-04-03 13:41:28 +0200 |
---|---|---|
committer | Machiavelli <none@none> | 2010-04-03 13:41:28 +0200 |
commit | 2708b757e81183fe23bf435ae76dce4a5c6e6659 (patch) | |
tree | 030ccbc60fe1539578a7ef70805e63042fb1f653 | |
parent | 18b30b5f1800924dbe93849e9affd98adeae4a21 (diff) |
Fix SMSG_GMTICKET_GETTICKET structure, by havenard. Closes issue #1419
--HG--
branch : trunk
-rw-r--r-- | src/game/TicketHandler.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game/TicketHandler.cpp b/src/game/TicketHandler.cpp index 520c4f61bf9..a42d02d2999 100644 --- a/src/game/TicketHandler.cpp +++ b/src/game/TicketHandler.cpp @@ -144,9 +144,10 @@ void WorldSession::HandleGMTicketSystemStatusOpcode( WorldPacket & /*recv_data*/ void WorldSession::SendGMTicketGetTicket(uint32 status, char const* text) { int len = text ? strlen(text) : 0; - WorldPacket data( SMSG_GMTICKET_GETTICKET, (4+len+1+4+2+4+4) ); + WorldPacket data(SMSG_GMTICKET_GETTICKET, (4+len+1+4+2+4+4)); data << uint32(status); // standard 0x0A, 0x06 if text present - if(status == 6) + data << uint32(1); // unk flags, if 0, can't edit the ticket + if (status == 6) { data << text; // ticket text data << uint8(0x7); // ticket category @@ -156,5 +157,5 @@ void WorldSession::SendGMTicketGetTicket(uint32 status, char const* text) data << uint8(0); // if == 2 and next field == 1 then "Your ticket has been escalated" data << uint8(0); // const } - SendPacket( &data ); + SendPacket(&data); } |