aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2022-04-25 20:43:09 +0100
committersfan5 <sfan5@live.de>2022-05-14 18:33:42 +0200
commit8b010c5a9feda44e4e21ecc0dd45aa01de14335a (patch)
tree29b2a9fe949b589c1ddf9dc0963d0b9a2b0e9922 /builtin
parent1e7b5d6fdb09e08b024fe5461c12efee92032936 (diff)
downloadminetest-8b010c5a9feda44e4e21ecc0dd45aa01de14335a.tar.gz
minetest-8b010c5a9feda44e4e21ecc0dd45aa01de14335a.tar.bz2
minetest-8b010c5a9feda44e4e21ecc0dd45aa01de14335a.zip
ContentDB: Fix ungraceful crash on aliases when list download fails
Fixes #12267 and fixes #12154
Diffstat (limited to 'builtin')
-rw-r--r--builtin/mainmenu/dlg_contentstore.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/mainmenu/dlg_contentstore.lua b/builtin/mainmenu/dlg_contentstore.lua
index 0127d600c..276a7b096 100644
--- a/builtin/mainmenu/dlg_contentstore.lua
+++ b/builtin/mainmenu/dlg_contentstore.lua
@@ -25,7 +25,7 @@ end
-- Unordered preserves the original order of the ContentDB API,
-- before the package list is ordered based on installed state.
-local store = { packages = {}, packages_full = {}, packages_full_unordered = {} }
+local store = { packages = {}, packages_full = {}, packages_full_unordered = {}, aliases = {} }
local http = core.get_http_api()