Table: fix table.remove_value
This commit is contained in:
@@ -417,7 +417,8 @@ end
|
|||||||
function table.remove_value(list, value)
|
function table.remove_value(list, value)
|
||||||
local index = table.indexof(list, value)
|
local index = table.indexof(list, value)
|
||||||
while index ~= -1 do
|
while index ~= -1 do
|
||||||
list = table.remove(list, index)
|
table.remove(list, index)
|
||||||
|
index = table.indexof(list, value)
|
||||||
end
|
end
|
||||||
|
|
||||||
return list
|
return list
|
||||||
|
|||||||
Reference in New Issue
Block a user