mirror of
https://github.com/azerothcore/mod-account-mounts
synced 2025-11-29 23:44:52 +08:00
Update mod_account_mount.cpp
Fix the Module wont get the correct AccountID so the sql query result is empty
This commit is contained in:
@@ -20,7 +20,7 @@ public:
|
||||
}
|
||||
|
||||
std::vector<uint32> Guids;
|
||||
uint32 playerGUID = pPlayer->GetGUID().GetCounter();
|
||||
uint32 playerGUID = pPlayer->GetSession()->GetAccountId();
|
||||
QueryResult result1 = CharacterDatabase.Query("SELECT `guid`, `race` FROM `characters` WHERE `account`={};", playerGUID);
|
||||
|
||||
if (!result1)
|
||||
|
||||
Reference in New Issue
Block a user