Changes

filter out resource data and prevent comparison error with true special case
Line 298: Line 298:  
self._ships_keys[product] = {}
 
self._ships_keys[product] = {}
 
for ship, _ in pairs(self._improvements._products[product]) do
 
for ship, _ in pairs(self._improvements._products[product]) do
table.insert(self._ships_keys[product], ship)
+
if type(ship) == "string" then
 +
table.insert(self._ships_keys[product], ship)
 +
end
 
end
 
end
 
table.sort(self._ships_keys[product])
 
table.sort(self._ships_keys[product])
 +
if self._improvements._products[product][true] then
 +
table.insert(self._ships_keys[product], 1, true)
 +
end
 
end
 
end
 
return self._ships_keys[product]
 
return self._ships_keys[product]
Anonymous user