Changes

m
no edit summary
Line 71: Line 71:     
function NanaminFleet:create_table()
 
function NanaminFleet:create_table()
    local _args = frame.args
   
     local ships = {}
 
     local ships = {}
 
     local vars = {}
 
     local vars = {}
 
     for i = 1, 6 do
 
     for i = 1, 6 do
 
         ships[i] = {}
 
         ships[i] = {}
         ships[i].object = Ship(_args["ship" .. tostring(i)], _args["ship" .. tostring(i) .. "_remodel"])
+
         ships[i].object = Ship(args["ship" .. tostring(i)], args["ship" .. tostring(i) .. "_remodel"])
 
          
 
          
 
         --Get the equips categorized under each ship specifically so the ship number doesn't have to be passed.
 
         --Get the equips categorized under each ship specifically so the ship number doesn't have to be passed.
 
         ships[i].equip = {}
 
         ships[i].equip = {}
 
         for a = 1, 4 do
 
         for a = 1, 4 do
             ships[i].equip[a] = { name = _args["ship" .. tostring(i) .. "_equip" .. tostring(a)] }
+
             ships[i].equip[a] = { name = args["ship" .. tostring(i) .. "_equip" .. tostring(a)] }
 
         end
 
         end
 
          
 
          
48

edits