As we're re-using the same struggle object, ensure PP is always restored before use.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-04-22 17:06:21 +02:00
parent 3174986796
commit c6a4c87d47
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ static CreatureLib::Battling::LearnedAttack* GetReplacementAttack() {
replacementAttack = new PkmnLib::Battling::LearnedMove(GetReplacementAttackData(), replacementAttack = new PkmnLib::Battling::LearnedMove(GetReplacementAttackData(),
CreatureLib::Battling::AttackLearnMethod::Unknown); CreatureLib::Battling::AttackLearnMethod::Unknown);
} }
replacementAttack->RestoreAllUses();
return replacementAttack; return replacementAttack;
} }