fix NRE in UpdateElectricalComponent

This commit is contained in:
_nebula 2023-07-27 01:11:09 +01:00
parent 7223935679
commit 8aefd0f37f

View File

@ -184,6 +184,11 @@ public class ShipManager : WorldObjectManager
private void UpdateElectricalComponent()
{
if (ShipElectricalComponent == null)
{
return;
}
var electricalSystem = ShipElectricalComponent._electricalSystem;
var damaged = ShipElectricalComponent._damaged;