Module:Items/ComparisonTables: Difference between revisions

Fixed off-by-one issue
(Change to format to hopefully reduce memory load)
(Fixed off-by-one issue)
Line 316: Line 316:
   local rowResult = {}
   local rowResult = {}
   for i = startID, startID + rowCount, 1 do
   for i = startID, startID + rowCount, 1 do
     local item = ItemData.Items[i]
     local item = ItemData.Items[i + 1]
     if item == nil then break end
     if item == nil then break end
     local rowTxt = '|-\r\n|'..Icons.Icon({item.name, type='item', size='50', notext=true})..'||[['..item.name..']]'
     local rowTxt = '|-\r\n|'..Icons.Icon({item.name, type='item', size='50', notext=true})..'||[['..item.name..']]'