mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 11:31:30 +00:00
Fix error in GetBotOwnerCharacterID
This commit is contained in:
parent
38572fe393
commit
31f891dda5
@ -4941,7 +4941,7 @@ uint32 Bot::GetBotOwnerCharacterID(uint32 botID, std::string* errorMessage) {
|
||||
|
||||
std::string query = StringFormat("SELECT BotOwnerCharacterID FROM bots WHERE BotID = %u", botID);
|
||||
auto results = database.QueryDatabase(query);
|
||||
if (results.Success()) {
|
||||
if (!results.Success()) {
|
||||
*errorMessage = std::string(results.ErrorMessage());
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user