fix(MOD): Update a guid var after the ObjectGuid implementation (#6)

This commit is contained in:
Skjalf
2021-12-25 18:51:41 -03:00
committed by GitHub
parent a578a3b576
commit 9648d7a3e6

View File

@@ -18,7 +18,7 @@ public:
ChatHandler(pPlayer->GetSession()).SendSysMessage("This server is running the |cff4CFF00AccountMounts |rmodule.");
}
std::vector<uint32> Guids;
uint32 playerGUID = pPlayer->GetGUID();
uint32 playerGUID = pPlayer->GetGUID().GetCounter();
QueryResult result1 = CharacterDatabase.PQuery("SELECT guid, race FROM characters WHERE account = %u", playerGUID);
if (!result1)
return;