Changes

no edit summary
Line 191: Line 191:  
end
 
end
 
for _, slot in ipairs(ship._equipment) do
 
for _, slot in ipairs(ship._equipment) do
slot.equipment = Equipment(slot.equipment)
+
if slot.equipment then
 +
slot.equipment = Equipment(slot.equipment)
 +
end
 
end
 
end
 
setmetatable(ship, ship)
 
setmetatable(ship, ship)
Anonymous user