Make LearnedMove->GetMoveData use a ForceAs, to reduce overhead.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
7c65bd084a
commit
1f81d857ac
|
@ -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>();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue