mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[11490] Alow implicit cast ObjectGuid->uint64 and only explicit uint64->ObjectGuid
Now safe allow this casts in like way after completed convertion to ObjectGuid use. Also simplify code in result allowed auto cast to uint64. Please _not_ add new uint64 storages (local and in structures) for guid values.
This commit is contained in:
parent
ecdb435b1e
commit
249fb836ca
47 changed files with 194 additions and 210 deletions
|
|
@ -107,7 +107,7 @@ void WorldSession::HandleSendMail(WorldPacket & recv_data )
|
|||
if (normalizePlayerName(receiver))
|
||||
rc = sObjectMgr.GetPlayerGuidByName(receiver);
|
||||
|
||||
if (rc.IsEmpty())
|
||||
if (!rc)
|
||||
{
|
||||
DETAIL_LOG("%s is sending mail to %s (GUID: nonexistent!) with subject %s and body %s includes %u items, %u copper and %u COD copper with unk1 = %u, unk2 = %u",
|
||||
pl->GetGuidStr().c_str(), receiver.c_str(), subject.c_str(), body.c_str(), items_count, money, COD, unk1, unk2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue