TorannD / RimWar

Global war across the Rim
MIT License
5 stars 4 forks source link

Update causes all caravans to stop moving #3

Open CIVITAS-John opened 4 years ago

CIVITAS-John commented 4 years ago

My personal fix is to add a check on Scout.cs, line 358 and 368:

if (this.WarSettlementComp != null)

<= This check prevents null reference exceptions and allows my game to continue..

CIVITAS-John commented 4 years ago

For Trader.cs, line 352:

I added a check for rwsc.parent: if(rwsc != null && rwsc.parent != null && rwsc.parent.Faction != this.Faction && !tradedWithSettlement)