that was a stack not a queue, nice

This commit is contained in:
Mikayla Fischler
2022-04-27 16:24:28 -04:00
parent d40937b467
commit 82726520b8
3 changed files with 3 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ function new()
local pop = function ()
if #queue > 0 then
return table.remove(queue)
return table.remove(queue, 1)
else
return nil
end