[Crash] Game crashes after cancelling a wall's build order.

Avatar
  • updated
  • Fixed

Game crashed after cancelling a wall - I think (unchecked a wall's build check)

Now whenever I load any autosave from the list it crashes as soon as I get into the game.

```

Noble Fates Critical Error:

ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index

System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at :0)

System.ThrowHelper.ThrowArgumentOutOfRangeException () (at :0)

OutlineActor.RemoveTile (TilePos tile) (at <49b27a2fdb57438296b7852e2fd09afe>:0)

BuildingActor.RemoveTile (TilePos tile) (at <49b27a2fdb57438296b7852e2fd09afe>:0)

BuildingActor.RemoveRoom (RoomActor room, System.Boolean autoCleanup, System.Boolean refreshBeh) (at <49b27a2fdb57438296b7852e2fd09afe>:0)

RoomActor.Destroyed () (at <49b27a2fdb57438296b7852e2fd09afe>:0)

Actor.Destroy () (at <49b27a2fdb57438296b7852e2fd09afe>:0)

RoomActor.PostLoad () (at <49b27a2fdb57438296b7852e2fd09afe>:0)

OctSaveReader.PostLoad () (at <49b27a2fdb57438296b7852e2fd09afe>:0)

UnityEngine.Debug:LogException(Exception)

OctSaveReader:PostLoad()

OctSaveManager:Load()

ManagerBehavior:UpdateLoading()

ManagerBehavior:Update()

```

Don't ya'll know about if checks? GAWD DAYUM

Version:
0.23.0.40
Fixed In:
0.23.0.42