diff --git a/utils.lua b/utils.lua --- a/utils.lua +++ b/utils.lua @@ -55,7 +55,7 @@ EngineUtils = { end; getValue = function(source, param) - local value = nil; + local value; if (type(source) == "function") then value = source(param); else @@ -197,7 +197,7 @@ end; function npc(tab) if (not tab.act) then tab.act = function(s) - local dlg = nil; + local dlg; if s.dlg then dlg = EngineUtils.getValue(s.dlg, s); end;