Fixed handling of numerical values in [case] statements. (Fix for bug #16370.)
This commit is contained in:
parent
8b1e74f181
commit
e8c2fcfab6
1 changed files with 2 additions and 2 deletions
|
@ -355,7 +355,7 @@ function wml_actions.switch(cfg)
|
|||
for v in helper.child_range(cfg, "case") do
|
||||
local match = false
|
||||
for w in string.gmatch(v.value, "[^%s,][^,]*") do
|
||||
if w == value then match = true end
|
||||
if w == tostring(value) then match = true ; break end
|
||||
end
|
||||
if match then
|
||||
handle_event_commands(v)
|
||||
|
|
Loading…
Add table
Reference in a new issue