Skip to content

Commit

Permalink
Fix IndexOutOfRangeException
Browse files Browse the repository at this point in the history
  • Loading branch information
b3nk3lly committed Sep 18, 2024
1 parent d7405bb commit 25ffb30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LookupAnything/Framework/Fields/FishSpawnRulesField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ private IEnumerable<SpawnRuleCondition> GetConditions(GameHelper gameHelper, str
}

// locations & seasons
if (this.HaveSameSeasons(spawnRules.Locations))
if (spawnRules.Locations != null && spawnRules.Locations.Any() && this.HaveSameSeasons(spawnRules.Locations))
{
var firstLocation = spawnRules.Locations[0];

Expand Down

0 comments on commit 25ffb30

Please sign in to comment.