Changes

m
Handle potential edge case correctly...?
Line 200: Line 200:  
local slots = {}
 
local slots = {}
 
if aircraft and aircraft > 0 then
 
if aircraft and aircraft > 0 then
for i = 1, ship:slots() do
+
for i = 1, ship:slots_length() do
 
local size = ship:slot_space(i)
 
local size = ship:slot_space(i)
 
table.insert(slots, self:get_emphasis(size, Formatting:format_stat(size), self._args.aircraft_slot_operator, self._args.aircraft_slot_good))
 
table.insert(slots, self:get_emphasis(size, Formatting:format_stat(size), self._args.aircraft_slot_operator, self._args.aircraft_slot_good))
Anonymous user