View Single Post
02/25/16, 12:34 PM   #4
mattymaats
Join Date: Feb 2016
Posts: 3
I thought it might be which is why I deleted everything and downloaded it again, I'm a bit confused how the new files could still have the same error unless it's stored somewhere else?

I've opened the file in notepad++ and that section looks like this

[i]function MasterMerchant:InitPurchaseHistory()
-- If no guild buyer history then load it up
if self.guildPurchases == nil then
self.guildPurchases = {}
for k, v in pairs(self.salesData) do
for j, dataList in pairs(v) do
for i = 1, #dataList['sales'], 1 do
local item = dataList['sales']
self.guildPurchases[item.guild] = self.guildPurchases[item.guild] or MMGuild:new(item.guild)
local guild = self.guildPurchases[item.guild]
guild:addSaleByDate(item.buyer, item['timestamp'], item.price, item.quant, item.wasKiosk, false)
end
end
end
end

for _, guild in pairs(self.guildPurchases) do
guild:sort()
end
end


Could you confirm exactly what I'm supposed to change it to as I'm not sure what needs to be added.
Thanks for your help with this.
  Reply With Quote