forked from Mirrors/openclonk
fix another c4script error when updating power network
parent
aeddfd1b03
commit
2392f85358
|
@ -520,7 +520,7 @@ private func RefreshPowerNetwork(object network)
|
|||
// Merge all the producers and consumers into their actual networks.
|
||||
for (var link in Concatenate(network.lib_power.idle_producers, network.lib_power.active_producers))
|
||||
{
|
||||
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