Fix overwriting loop element in InventoryData.recalculate_data
Fix overwriting loop element in InventoryData.recalculate_data

Change-Id: I28f2d1b3fc7095e77a5145fd64d35d9aab65541c

vespian/inventory_tool,brainly/inventory_tool