fix not working usage of ipairs

This commit is contained in:
cora 2021-08-31 21:46:23 +02:00
parent d814a97b7a
commit a3cc763e87

View File

@ -51,7 +51,7 @@ end
function ws.in_list(val, list)
if type(list) ~= "table" then return false end
for i, v in ipairs(list) do
for i, v in pairs(list) do
if v == val then
return true
end