Make LearnedMove->GetMoveData use a ForceAs, to reduce overhead.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-07-04 19:33:26 +02:00
parent 7c65bd084a
commit 1f81d857ac
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ namespace PkmnLib::Battling {
: CreatureLib::Battling::LearnedAttack(move.As<const CreatureLib::Library::AttackData>(), learnMethod) {}
const ArbUt::BorrowedPtr<const Library::MoveData> GetMoveData() const {
return GetAttack().As<const Library::MoveData>();
return GetAttack().ForceAs<const Library::MoveData>();
}
};
}