From 2f5c3d2df73e8f36c4f33326c1cdaa05220ab786 Mon Sep 17 00:00:00 2001 From: Nifyr Date: Wed, 1 Nov 2023 21:07:11 +0100 Subject: [PATCH] Fixed crash upon loading ug encounters with forms --- Analyzer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Analyzer.cs b/Analyzer.cs index 17250c6..9acfeda 100644 --- a/Analyzer.cs +++ b/Analyzer.cs @@ -289,7 +289,7 @@ public static MainForm.RandomizerSetupConfig GetSetupConfig() for (int file = 0; file < gameData.ugEncounterFiles.Count; file++) for (int i = 0; i < gameData.ugEncounterFiles[file].ugEncounters.Count; i++) if (gameData.ugEncounterFiles[file].ugEncounters[i].dexID > 0) - instances[gameData.ugEncounterFiles[file].ugEncounters[i].dexID]++; + instances[(ushort)gameData.ugEncounterFiles[file].ugEncounters[i].dexID]++; randomizerSetupConfig.wildPokemon = ToItemDistributionConfig(instances, entities); //Wild Pokémon Levels