From bfa3172ea44649d8970e3d34ffbc79fbc6b18f9f Mon Sep 17 00:00:00 2001 From: antony Date: Wed, 7 Aug 2024 09:18:31 +0200 Subject: [PATCH] fix the fix --- src/PlayerbotAI.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/PlayerbotAI.cpp b/src/PlayerbotAI.cpp index 3e7afb5e..117f6263 100644 --- a/src/PlayerbotAI.cpp +++ b/src/PlayerbotAI.cpp @@ -4407,9 +4407,9 @@ Item* PlayerbotAI::FindOilFor(Item* weapon) const { for (const auto& id : uPriorizedWizardOilIds) { - oil = FindConsumable(uPriorizedWizardOilIds[id]); + oil = FindConsumable(id); if (!oil) - oil = FindConsumable(uPriorizedManaOilIds[id]); + oil = FindConsumable(id); if (oil) return oil; } @@ -4418,9 +4418,9 @@ Item* PlayerbotAI::FindOilFor(Item* weapon) const { for (const auto& id : uPriorizedManaOilIds) { - oil = FindConsumable(uPriorizedManaOilIds[id]); + oil = FindConsumable(id); if (!oil) - oil = FindConsumable(uPriorizedWizardOilIds[id]); + oil = FindConsumable(id); if (oil) return oil; }