More warning fixes

This commit is contained in:
Deukhoofd committed 2025-05-02 16:06:01 +02:00
1 parent dabb26e4f2
commit b69ba6eaff
56 files changed
+56 -80

No files matched your search

+1 -1
View File
@@ -525,7 +525,7 @@ public class PokemonImpl : ScriptSource, IPokemon
return null;
if (!library.StaticLibrary.Moves.TryGet(move.MoveName, out var moveData))
throw new KeyNotFoundException($"Move {move.MoveName} not found");
return new LearnedMoveImpl(moveData, move.LearnMethod, move.CurrentPp);
return (ILearnedMove)new LearnedMoveImpl(moveData, move.LearnMethod, move.CurrentPp);
}).ToArray();
AllowedExperience = serializedPokemon.AllowedExperience;
IsEgg = serializedPokemon.IsEgg;