Update PKMEditor.cs

This commit is contained in:
Kurt
2021-01-02 12:46:46 -08:00
parent d02dd29e83
commit cdcbc3750b

View File

@@ -1957,16 +1957,19 @@ private static void SetIfDifferentCount(IReadOnlyCollection<ComboItem> update, C
private void PopulateFilteredDataSources(ITrainerInfo sav, bool force = false)
{
var source = GameInfo.FilteredSources;
SetIfDifferentCount(source.Languages, CB_Language, force);
if (sav.Generation >= 2)
{
CheckMetLocationChange((GameVersion) sav.Game);
var game = (GameVersion) sav.Game;
if (game <= 0)
game = GameUtil.GetVersion(sav.Generation);
CheckMetLocationChange(game);
SetIfDifferentCount(source.Items, CB_HeldItem, force);
}
if (sav.Generation >= 3)
{
SetIfDifferentCount(source.Languages, CB_Language, force);
SetIfDifferentCount(source.Balls, CB_Ball, force);
SetIfDifferentCount(source.Games, CB_GameOrigin, force);
}