From e99363e4e97e65f4d2606bd7cac2eb23fcc57aee Mon Sep 17 00:00:00 2001 From: mckaygerhard Date: Sun, 17 Sep 2023 15:35:03 -0400 Subject: [PATCH] pkgmgr: Fix crash when .conf release field is invalid --- builtin/mainmenu/pkgmgr.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/mainmenu/pkgmgr.lua b/builtin/mainmenu/pkgmgr.lua index 4044bcdea..6f3fb8a21 100644 --- a/builtin/mainmenu/pkgmgr.lua +++ b/builtin/mainmenu/pkgmgr.lua @@ -51,7 +51,7 @@ function get_mods(path,retval,modpack) -- Read from config toadd.name = name toadd.author = mod_conf.author - toadd.release = tonumber(mod_conf.release or "0") + toadd.release = tonumber(mod_conf.release or 0) toadd.path = prefix toadd.type = "mod" @@ -99,7 +99,7 @@ function pkgmgr.get_texture_packs() retval[#retval + 1] = { name = item, author = conf:get("author"), - release = tonumber(conf:get("release") or "0"), + release = tonumber(conf:get("release") or 0), list_name = name, type = "txp", path = path,