1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-10 07:23:28 +08:00

fix crashes

This commit is contained in:
2025-10-30 00:12:47 +08:00
parent c99c59a117
commit 8d5bb140e1
2 changed files with 7 additions and 3 deletions

View File

@@ -12,6 +12,7 @@ public class PlanetStations
public void AddStationStorage(bool demand, int id, int stationId, int storageIdx)
{
LogisticHub.Logger.LogDebug($"AddStationStorage: demand={demand}, id={id}, stationId={stationId}, storageIdx={storageIdx}");
var stations = StorageIndices[demand ? 1 : 0];
if (stations == null || id >= stations.Length)
{