View Single Post
05/01/14, 08:07 AM   #14
Sharlikran
 
Sharlikran's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 660
Lua Code:
  1. function Harvest.saveItem( nodeName, itemName, itemID )
The first thing I just noticed is that in the above function, which I want to reference "Harvest.items.data" I was using Harvest.nodes.data when I was assigining the empty set prior to inserting into the table.
Lua Code:
  1. if not Harvest.nodes.data[itemID] then
  2.         Harvest.nodes.data[itemID] = {}
  3.     end
  Reply With Quote