[Bug Fix] Fix #findaa and GetAAName(). (#2774)

# Notes
- These were not properly checking every possible AA ID.
This commit is contained in:
Alex King
2023-01-22 12:56:49 -05:00
committed by GitHub
parent d0edb93d62
commit 0a11eaa092
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -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;
}
}
}
}