From 6155385f69769bf04832ad3708849ab5cd054322 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 15 Aug 2024 17:55:19 +0100 Subject: [PATCH] [Minor] Sime minor changes --- lualib/lua_cfg_transform.lua | 4 ++-- 1 file 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 -- 2.39.5