mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-18 14:10:18 -04:00
Core/Entities: First batch of removing implicit conversions of ObjectGuid to uint64
This commit is contained in:
@@ -182,7 +182,7 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
if (handler->GetSession()->GetPlayer()->GetTarget())
|
||||
if (!handler->GetSession()->GetPlayer()->GetTarget().IsEmpty())
|
||||
unit->PlayDistanceSound(soundId, handler->GetSession()->GetPlayer());
|
||||
else
|
||||
unit->PlayDirectSound(soundId, handler->GetSession()->GetPlayer());
|
||||
@@ -390,15 +390,15 @@ public:
|
||||
ifs.close();
|
||||
return false;
|
||||
}
|
||||
data << uint64(obj->GetGUID());
|
||||
data << obj->GetGUID();
|
||||
}
|
||||
else if (type == "myguid")
|
||||
{
|
||||
data << uint64(player->GetGUID());
|
||||
data << player->GetGUID();
|
||||
}
|
||||
else if (type == "itsguid")
|
||||
{
|
||||
data << uint64(unit->GetGUID());
|
||||
data << unit->GetGUID();
|
||||
}
|
||||
else if (type == "itspos")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user