Browse Source

[Fix] lua_cfg_transform - actions without score (discard)

tags/3.2
Carsten Rosenberg 2 years ago
parent
commit
ea6276bce5
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      lualib/lua_cfg_transform.lua

+ 3
- 1
lualib/lua_cfg_transform.lua View File

@@ -374,7 +374,9 @@ return function(cfg)
not cfg.actions['accept'] then
for _,d in ipairs(actions_defs) do
if cfg.actions[d] then
if type(cfg.actions[d]) ~= 'number' then
if type(cfg.actions[d]) ~= 'table' then
break
elseif type(cfg.actions[d]) ~= 'number' then
cfg.actions[d] = nil
elseif cfg.actions[d] < 0 then
cfg.actions['no_action'] = cfg.actions[d] - 0.001

Loading…
Cancel
Save