mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Fix Expendable AAs
Thanks to ASan
This commit is contained in:
parent
a69fbb9e0b
commit
3c1b499485
@ -1234,13 +1234,13 @@ void Mob::ExpendAlternateAdvancementCharge(uint32 aa_id) {
|
|||||||
iter.second.second -= 1;
|
iter.second.second -= 1;
|
||||||
|
|
||||||
if(iter.second.second == 0) {
|
if(iter.second.second == 0) {
|
||||||
aa_ranks.erase(iter.first);
|
|
||||||
if(IsClient()) {
|
if(IsClient()) {
|
||||||
AA::Rank *r = ability->GetRankByPointsSpent(iter.second.first);
|
AA::Rank *r = ability->GetRankByPointsSpent(iter.second.first);
|
||||||
if(r) {
|
if(r) {
|
||||||
CastToClient()->GetEPP().expended_aa += r->cost;
|
CastToClient()->GetEPP().expended_aa += r->cost;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
aa_ranks.erase(iter.first);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(IsClient()) {
|
if(IsClient()) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user