fix the fix

This commit is contained in:
antony
2024-08-07 09:18:31 +02:00
parent 481c2494bb
commit bfa3172ea4

View File

@@ -4407,9 +4407,9 @@ Item* PlayerbotAI::FindOilFor(Item* weapon) const
{ {
for (const auto& id : uPriorizedWizardOilIds) for (const auto& id : uPriorizedWizardOilIds)
{ {
oil = FindConsumable(uPriorizedWizardOilIds[id]); oil = FindConsumable(id);
if (!oil) if (!oil)
oil = FindConsumable(uPriorizedManaOilIds[id]); oil = FindConsumable(id);
if (oil) if (oil)
return oil; return oil;
} }
@@ -4418,9 +4418,9 @@ Item* PlayerbotAI::FindOilFor(Item* weapon) const
{ {
for (const auto& id : uPriorizedManaOilIds) for (const auto& id : uPriorizedManaOilIds)
{ {
oil = FindConsumable(uPriorizedManaOilIds[id]); oil = FindConsumable(id);
if (!oil) if (!oil)
oil = FindConsumable(uPriorizedWizardOilIds[id]); oil = FindConsumable(id);
if (oil) if (oil)
return oil; return oil;
} }