Fix Expendable AAs

Thanks to ASan
This commit is contained in:
Michael Cook (mackal) 2015-07-09 02:37:43 -04:00
parent a69fbb9e0b
commit 3c1b499485

View File

@ -1234,13 +1234,13 @@ void Mob::ExpendAlternateAdvancementCharge(uint32 aa_id) {
iter.second.second -= 1;
if(iter.second.second == 0) {
aa_ranks.erase(iter.first);
if(IsClient()) {
AA::Rank *r = ability->GetRankByPointsSpent(iter.second.first);
if(r) {
CastToClient()->GetEPP().expended_aa += r->cost;
}
}
aa_ranks.erase(iter.first);
}
if(IsClient()) {