mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 18:10:26 +00:00
feat(Core/Misc): implement ObjectGuid class (port from TC) (#4885)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user