mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 01:37:04 +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
|
|
@ -844,7 +844,7 @@ void WorldSession::HandleTurnInPetitionOpcode(WorldPacket & recv_data)
|
|||
Field* fields = result->Fetch();
|
||||
|
||||
ObjectGuid signGuid = ObjectGuid(HIGHGUID_PLAYER, fields[0].GetUInt32());
|
||||
if (signGuid.IsEmpty())
|
||||
if (!signGuid)
|
||||
continue;
|
||||
|
||||
guild->AddMember(signGuid, guild->GetLowestRank());
|
||||
|
|
@ -876,7 +876,7 @@ void WorldSession::HandleTurnInPetitionOpcode(WorldPacket & recv_data)
|
|||
{
|
||||
Field* fields = result->Fetch();
|
||||
ObjectGuid memberGUID = ObjectGuid(HIGHGUID_PLAYER, fields[0].GetUInt32());
|
||||
if (memberGUID.IsEmpty())
|
||||
if (!memberGUID)
|
||||
continue;
|
||||
|
||||
DEBUG_LOG("PetitionsHandler: adding arena member %s", memberGUID.GetString().c_str());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue