Changes

no edit summary
Line 82: Line 82:  
for index, ship in ipairs(ships) do
 
for index, ship in ipairs(ships) do
 
if not ships_to_skip[ship] then
 
if not ships_to_skip[ship] then
local remodel_to = ship_data[ship]:remodel_to()
+
local remodel_from = ship_data[ship]:remodel_from()
if ship_data[remodel_to] then
+
if ship_data[remodel_from] then
 
local identical = true
 
local identical = true
 
for day, possible in pairs(availability[ship]) do
 
for day, possible in pairs(availability[ship]) do
if availability[remodel_to][day] ~= possible then
+
if availability[remodel_from][day] ~= possible then
 
identical = false
 
identical = false
 
end
 
end
Anonymous user