mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Fixed error if there are too many planets
Found by `Jammer`
This commit is contained in:
parent
ed034fa3f3
commit
28970e4138
@ -72,7 +72,7 @@ namespace NewHorizons.Builder.General
|
||||
MakeAllNodes(ref rootObject, transformParent, layer);
|
||||
}
|
||||
|
||||
const int maxAmount = 20;
|
||||
int maxAmount = Main.BodyDict[Main.Instance.CurrentStarSystem].Count;
|
||||
ShipLogAstroObject[][] navMatrix = new ShipLogAstroObject[maxAmount][];
|
||||
for (int i = 0; i < maxAmount; i++)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user