Merge pull request #9 from qwe900/master

Update mod_account_mount.cpp
This commit is contained in:
Kitzunu
2023-11-12 01:27:38 +01:00
committed by GitHub

View File

@@ -20,8 +20,8 @@ public:
}
std::vector<uint32> Guids;
uint32 playerGUID = pPlayer->GetGUID().GetCounter();
QueryResult result1 = CharacterDatabase.Query("SELECT `guid`, `race` FROM `characters` WHERE `account`={};", playerGUID);
uint32 playerAccountID = pPlayer->GetSession()->GetAccountId();
QueryResult result1 = CharacterDatabase.Query("SELECT `guid`, `race` FROM `characters` WHERE `account`={};", playerAccountID);
if (!result1)
return;