mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[9618] More use ObjectGuid in spell/etc code
This commit is contained in:
parent
21ff192866
commit
b658b25ff8
19 changed files with 117 additions and 122 deletions
|
|
@ -1748,9 +1748,9 @@ void ChatHandler::FillMessageData( WorldPacket *data, WorldSession* session, uin
|
|||
*data << uint32(0); // 2.1.0
|
||||
*data << uint32(strlen(speaker->GetName()) + 1);
|
||||
*data << speaker->GetName();
|
||||
uint64 listener_guid = 0;
|
||||
*data << uint64(listener_guid);
|
||||
if(listener_guid && !IS_PLAYER_GUID(listener_guid))
|
||||
ObjectGuid listener_guid;
|
||||
*data << listener_guid;
|
||||
if (!listener_guid.IsEmpty() && !listener_guid.IsPlayer())
|
||||
{
|
||||
*data << uint32(1); // string listener_name_length
|
||||
*data << uint8(0); // string listener_name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue