Changes

no edit summary
Line 283: Line 283:  
function ShipData:total_space()
 
function ShipData:total_space()
 
local total_space = 0
 
local total_space = 0
local space
+
local size
 
for _, v in ipairs(self._equipment) do
 
for _, v in ipairs(self._equipment) do
space = v["space"]
+
size = v["size"]
if space == nil then
+
if size == nil then
 
total_space = "??"
 
total_space = "??"
 
break
 
break
elseif space == false then
+
elseif size == false then
 
else
 
else
total_space = total_space + space
+
total_space = total_space + size
 
end
 
end
 
end
 
end
Anonymous user