-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix oil issue #445
Fix oil issue #445
Conversation
src/PlayerbotAI.cpp
Outdated
{ | ||
oil = FindConsumable(uPriorizedWizardOilIds[i]); | ||
oil = FindConsumable(uPriorizedWizardOilIds[id]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems even worse. Imagine uPrioritizedWizardOilIds[MINOR_WIZARD_OIL] being equivalent to uPrioritizedWizardOilIds[9731].
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea
Didnt met to close this damn pr miss clicked. I didnt paid attention to the priority of the weapon type i'll rewrite this by my end rather than fixing this retarded code. |
Mate it took me a decent amount of staring at that code (the original) before I was sure I knew what it was doing, its like it's been written by a decompiler or something. |
Maybe, but good call ! |
#428
#441