ConstructionSite: Fix possible nil access

Code that works with that function expects an array to be returned.
install-platforms
Mark 2017-08-27 12:19:38 +02:00
parent d1996e45df
commit 3917964bf2
1 changed files with 2 additions and 2 deletions

View File

@ -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;