mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Merge branch 'dev' of https://github.com/xen-42/outer-wilds-new-horizons into dev
This commit is contained in:
commit
bd48fa21a5
@ -53,7 +53,7 @@ namespace NewHorizons.Components
|
|||||||
|
|
||||||
public int GetRandomNewState()
|
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());
|
var index = Random.Range(0, range.Count());
|
||||||
return range.ElementAt(index);
|
return range.ElementAt(index);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user