Queue: fix accessing undefined variable result

This commit is contained in:
Starbeamrainbowlabs 2021-07-30 19:57:16 +01:00
parent f0e1111b7c
commit 8c76b3b760
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2

@ -6,7 +6,7 @@ local Queue = {}
Queue.__index = Queue
function Queue.new()
result = { first = 0, last = -1, items = {} }
local result = { first = 0, last = -1, items = {} }
setmetatable(result, Queue)
return result
end