From 1f81d857acec71ec3508ece6ec18a993fb41ec96 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 4 Jul 2020 19:33:26 +0200 Subject: [PATCH] Make LearnedMove->GetMoveData use a ForceAs, to reduce overhead. --- src/Battling/Pokemon/LearnedMove.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Battling/Pokemon/LearnedMove.hpp b/src/Battling/Pokemon/LearnedMove.hpp index 91ccf89..dca7dd9 100644 --- a/src/Battling/Pokemon/LearnedMove.hpp +++ b/src/Battling/Pokemon/LearnedMove.hpp @@ -11,7 +11,7 @@ namespace PkmnLib::Battling { : CreatureLib::Battling::LearnedAttack(move.As(), learnMethod) {} const ArbUt::BorrowedPtr GetMoveData() const { - return GetAttack().As(); + return GetAttack().ForceAs(); } }; }