feat(Core/Misc): implement ObjectGuid class (port from TC) (#4885)

This commit is contained in:
UltraNix
2021-04-25 22:18:03 +02:00
committed by GitHub
parent 91081f4ad8
commit f4c226423d
568 changed files with 10655 additions and 11019 deletions

View File

@@ -304,7 +304,7 @@ public:
return false;
Player* target = ObjectAccessor::FindPlayerByName(args, false);
uint32 targetGuid = 0;
ObjectGuid targetGuid;
std::string name(args);
if (!target)
@@ -317,10 +317,10 @@ public:
}
}
else
targetGuid = target->GetGUIDLow();
targetGuid = target->GetGUID();
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_BANINFO);
stmt->setUInt32(0, targetGuid);
stmt->setUInt32(0, targetGuid.GetCounter());
PreparedQueryResult result = CharacterDatabase.Query(stmt);
if (!result)
{