From 982cb3e1d9a324dc346eb7c57f09712ea53d7e4e Mon Sep 17 00:00:00 2001 From: Antz Date: Mon, 3 Oct 2016 21:09:38 +0100 Subject: [PATCH] [PLAYERBOTS] Removed non-existing db columns from AHBot lookup --- src/modules/Bots/ahbot/PricingStrategy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/Bots/ahbot/PricingStrategy.cpp b/src/modules/Bots/ahbot/PricingStrategy.cpp index fddb64a0..cc72d598 100644 --- a/src/modules/Bots/ahbot/PricingStrategy.cpp +++ b/src/modules/Bots/ahbot/PricingStrategy.cpp @@ -197,8 +197,8 @@ uint32 PricingStrategy::GetDefaultBuyPrice(ItemPrototype const* proto) double result = 1.0; QueryResult* results = WorldDatabase.PQuery( - "select max(QuestLevel), max(MinLevel) from quest_template where ReqItemId1 = %u or ReqItemId2 = %u or ReqItemId3 = %u or ReqItemId4 = %u or ReqItemId5 = %u or ReqItemId6 = %u", - proto->ItemId, proto->ItemId, proto->ItemId, proto->ItemId, proto->ItemId, proto->ItemId); + "select max(QuestLevel), max(MinLevel) from quest_template where ReqItemId1 = %u or ReqItemId2 = %u or ReqItemId3 = %u or ReqItemId4 = %u", + proto->ItemId, proto->ItemId, proto->ItemId, proto->ItemId); if (results) { Field* fields = results->Fetch();