mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-04 02:47:22 +00:00
fix NRE in UpdateElectricalComponent
This commit is contained in:
parent
7223935679
commit
8aefd0f37f
@ -184,6 +184,11 @@ public class ShipManager : WorldObjectManager
|
||||
|
||||
private void UpdateElectricalComponent()
|
||||
{
|
||||
if (ShipElectricalComponent == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var electricalSystem = ShipElectricalComponent._electricalSystem;
|
||||
var damaged = ShipElectricalComponent._damaged;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user