From 31f891dda56ed827f55eb5d0dd91878e5e683a84 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Tue, 30 Sep 2014 18:19:57 -0400 Subject: [PATCH] Fix error in GetBotOwnerCharacterID --- zone/bot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index 462e9d0e5..8e875f70c 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -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; }