forked from Mirrors/openclonk
ConstructionSite: Fix possible nil access
Code that works with that function expects an array to be returned.install-platforms
parent
d1996e45df
commit
3917964bf2
|
@ -272,10 +272,10 @@ private func ShowMissingComponents()
|
|||
private func GetMissingComponents()
|
||||
{
|
||||
if (definition == nil)
|
||||
return;
|
||||
return [];
|
||||
|
||||
if (full_material == true)
|
||||
return nil;
|
||||
return [];
|
||||
|
||||
// Set false again as soon as we find a missing component
|
||||
full_material = true;
|
||||
|
|
Loading…
Reference in New Issue