mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 07:38:36 +00:00
[Bug Fix] Fix #findaa and GetAAName(). (#2774)
# Notes - These were not properly checking every possible AA ID.
This commit is contained in:
@@ -2984,6 +2984,12 @@ std::string Zone::GetAAName(int aa_id)
|
||||
const auto& a = aa_abilities.find(current_aa_id);
|
||||
if (a != aa_abilities.end()) {
|
||||
return a->second.get()->name;
|
||||
} else {
|
||||
for (const auto& b : aa_abilities) {
|
||||
if (b.second.get()->first->id == aa_id) {
|
||||
return b.second.get()->name;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user