Fixes MoveTurnChoice creating potential invalid types.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
5187cb994d
commit
012a47c78a
|
@ -20,7 +20,7 @@ namespace PkmnLibSharp.Battling.ChoiceTurn
|
||||||
var ptr = Creaturelib.Generated.AttackTurnChoice.GetAttack(Ptr);
|
var ptr = Creaturelib.Generated.AttackTurnChoice.GetAttack(Ptr);
|
||||||
if (TryResolvePointer(ptr, out _move))
|
if (TryResolvePointer(ptr, out _move))
|
||||||
return _move!;
|
return _move!;
|
||||||
_move = new LearnedMove(ptr);
|
_move = Constructor.Active.ConstructLearnedMove(ptr)!;
|
||||||
return _move;
|
return _move;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue