Skip to content

Commit

Permalink
fix: accessing undefined variable name + owner + items
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Jun 2, 2024
1 parent a59ef75 commit 93c1606
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
local self = {}

self.name = name
self.owner = owner
self.items = items
local self, name, owner, items = {}, {}, {}, {}
self.name = name
self.owner = owner
self.items = items

function CreateAddonInventory()

function self.addItem(name, count)
local item = self.getItem(name)
item.count = item.count + count
Expand Down

0 comments on commit 93c1606

Please sign in to comment.