stop clearing queue arrays

This commit is contained in:
Redo0
2021-06-05 19:02:28 -05:00
parent 19d2e36fd6
commit d3d03ce9a7
2 changed files with 11 additions and 15 deletions

View File

@@ -68,7 +68,7 @@ function tobitstring(num, len)
return bitstring
end
function array_remove(array, value)
function array_remove(array, value, pass)
for i = 1, #array do
local v = array[i]
if v==value then
@@ -77,7 +77,7 @@ function array_remove(array, value)
return
end
end
error("element not in array")
if not pass then error("element not in array") end
end
function array_add(array, value)