api: ensure variables to be available

This commit is contained in:
shagu
2017-01-01 19:56:59 +01:00
parent 66f4fcf8ca
commit fe232d2553
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ function pfUI.firstrun:AddStep(name, yfunc, nfunc, descr, cmpnt)
end
function pfUI.firstrun:NextStep()
if next(pfUI_init) == nil then
if pfUI_init and next(pfUI_init) == nil then
local yes = function()
this:GetParent():Hide()
pfUI_init["welcome"] = true