Fix null comparison

Thanks InfiniRien!
This commit is contained in:
Kurt
2015-11-23 19:29:36 -08:00
parent be724bda38
commit db828038bb

View File

@@ -655,7 +655,7 @@ private void Randomize()
int type = GetRandomType(i);
bool mevo = rEnsureMEvo.Contains(i);
bool typerand = rTypeTheme && !rGymE4Only ||
(rTypeTheme && (rImportant[i].Contains("GYM") || rImportant[i].Contains("ELITE") || rImportant[i].Contains("CHAMPION")));
(rTypeTheme && rImportant[i] != null && (rImportant[i].Contains("GYM") || rImportant[i].Contains("ELITE") || rImportant[i].Contains("CHAMPION")));
// Randomize Pokemon
for (int p = 0; p < CB_numPokemon.SelectedIndex; p++)