Fixes MoveTurnChoice creating potential invalid types.
continuous-integration/drone/push Build is passing Details

master
Deukhoofd 2022-05-15 13:48:41 +02:00
parent 5187cb994d
commit 012a47c78a
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ namespace PkmnLibSharp.Battling.ChoiceTurn
var ptr = Creaturelib.Generated.AttackTurnChoice.GetAttack(Ptr);
if (TryResolvePointer(ptr, out _move))
return _move!;
_move = new LearnedMove(ptr);
_move = Constructor.Active.ConstructLearnedMove(ptr)!;
return _move;
}
}