From 444f543e84ac9432be7d3c2f5707549fd6d19d44 Mon Sep 17 00:00:00 2001 From: Noah Pilarski Date: Thu, 14 Jul 2022 22:42:24 -0400 Subject: [PATCH] Fix the last state not showing --- NewHorizons/Components/QuantumPlanet.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NewHorizons/Components/QuantumPlanet.cs b/NewHorizons/Components/QuantumPlanet.cs index bce7d9a2..2b853b76 100644 --- a/NewHorizons/Components/QuantumPlanet.cs +++ b/NewHorizons/Components/QuantumPlanet.cs @@ -53,7 +53,7 @@ namespace NewHorizons.Components public int GetRandomNewState() { - var range = Enumerable.Range(0, states.Count - 1).Where(i => i != CurrentIndex); + var range = Enumerable.Range(0, states.Count).Where(i => i != CurrentIndex); var index = Random.Range(0, range.Count()); return range.ElementAt(index); }