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