Skip to content

Commit

Permalink
Fixed crash upon loading ug encounters with forms
Browse files Browse the repository at this point in the history
  • Loading branch information
Nifyr committed Nov 1, 2023
1 parent eaba942 commit 2f5c3d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Analyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2f5c3d2

Please sign in to comment.