[Lua] Fix call of nonexistent function

This commit is contained in:
Celtic Minstrel 2024-02-04 14:12:11 -05:00 committed by Celtic Minstrel
parent 92b8a8cb00
commit a9e4a3cce8

View file

@ -430,7 +430,7 @@ function methods:to_wml_var(name, mode)
elseif wml.valid{value = v} then
wml.variables[string.format("%s[%d]", name, i)] = {value = v}
elseif type(v) ~= 'boolean' then
warning('Location set value could not be converted to a WML variable:', v)
warn('Location set value could not be converted to a WML variable:', v)
end
wml.variables[string.format("%s[%d].x", name, i)] = x
wml.variables[string.format("%s[%d].y", name, i)] = y