aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_cfg_transform.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lualib/lua_cfg_transform.lua')
-rw-r--r--lualib/lua_cfg_transform.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/lua_cfg_transform.lua b/lualib/lua_cfg_transform.lua
index b928cd88a..43487ea52 100644
--- a/lualib/lua_cfg_transform.lua
+++ b/lualib/lua_cfg_transform.lua
@@ -188,7 +188,7 @@ return function(cfg)
local action_score
local act = actions:at(d)
- if act:type() == 'number' then
+ if act:type() ~= 'object' then
action_score = act:unwrap()
elseif act:type() == 'object' and act:at('score') then
action_score = act:at('score'):unwrap()
@@ -232,7 +232,7 @@ return function(cfg)
for i = 1, (#actions_order - 1) do
local act = actions_order[i]
- if actions:at(act) and actions:at(act):type() == 'number' then
+ if actions:at(act) and actions:at(act):type() ~= 'object' then
local score = actions:at(act):unwrap()
for j = i + 1, #actions_order do