diff options
author | Machiavelli <none@none> | 2010-02-15 10:17:33 +0100 |
---|---|---|
committer | Machiavelli <none@none> | 2010-02-15 10:17:33 +0100 |
commit | 9fe3a501cc0f2d272e40e1319ba19eaf1c527173 (patch) | |
tree | b527fe21669a90ead5f2bacf26d93e88fb2a20a0 /src | |
parent | 486c00891ba34884e5b2cdd8d44b4d8496f11283 (diff) |
Fix in outgoing MSG_QUERY_NEXT_MAIL_TIME (the new mail notification icon next to the mini map): do not show the name of a player asociated with the mail sender GUID if the mail is not from a player (messagetype != MAIL_NORMAL).
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Mail.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/Mail.cpp b/src/game/Mail.cpp index 64403a3b488..667b5ef19ec 100644 --- a/src/game/Mail.cpp +++ b/src/game/Mail.cpp @@ -751,7 +751,10 @@ void WorldSession::HandleQueryNextMailTime(WorldPacket & /*recv_data*/ ) if (now < m->deliver_time) continue; - data << uint64(m->sender); // sender guid + if (m->messageType) + data << uint64(m->sender); // player guid + else + data << uint32(m->sender); // creature entry switch(m->messageType) { |