stop clearing queue arrays
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user