diff options
Diffstat (limited to 'script/vm/value.lua')
-rw-r--r-- | script/vm/value.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/script/vm/value.lua b/script/vm/value.lua index 23a9f2c9..bbae446c 100644 --- a/script/vm/value.lua +++ b/script/vm/value.lua @@ -23,10 +23,13 @@ function vm.testCondition(source) hasFalse = true end elseif n.type == 'global' and n.cate == 'type' then + if n.name == 'boolean' then + return nil + end if n.name == 'false' or n.name == 'nil' then hasFalse = true - elseif n.name ~= 'boolean' then + else hasTrue = true end elseif n.type == 'nil' then |