mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
Fix error in GetBotOwnerCharacterID
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user