forked from Mirrors/openclonk
fix script runtime error when updating power networks
parent
7c2a4ee574
commit
84d621fc5a
|
@ -531,7 +531,7 @@ private func RefreshPowerNetwork(object network)
|
|||
}
|
||||
for (var link in Concatenate(network.lib_power.waiting_consumers, network.lib_power.active_consumers))
|
||||
{
|
||||
if (!link)
|
||||
if (!link || !link.obj)
|
||||
continue;
|
||||
var actual_network = Library_Power->GetPowerNetwork(link.obj);
|
||||
if (!actual_network || actual_network == network)
|
||||
|
|
Loading…
Reference in New Issue