aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2019-02-03 19:54:43 +0000
committerrubenwardy <rw@rubenwardy.com>2019-02-03 19:54:50 +0000
commit5b965e08bd8795c71ab9a6d9474c2cf3bd3a7d17 (patch)
treea946a7a43489917fab58173c8c1eda0c396ac552
parent0d0875fc006e878d2a860021ea546a21f25c4579 (diff)
downloadminetest-5b965e08bd8795c71ab9a6d9474c2cf3bd3a7d17.tar.gz
minetest-5b965e08bd8795c71ab9a6d9474c2cf3bd3a7d17.tar.bz2
minetest-5b965e08bd8795c71ab9a6d9474c2cf3bd3a7d17.zip
Content store: Fix assertion failed on unsuccessful package list fetch
Fixes #8168
-rw-r--r--builtin/mainmenu/dlg_contentstore.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/builtin/mainmenu/dlg_contentstore.lua b/builtin/mainmenu/dlg_contentstore.lua
index 655e596d4..a8dc072d5 100644
--- a/builtin/mainmenu/dlg_contentstore.lua
+++ b/builtin/mainmenu/dlg_contentstore.lua
@@ -15,7 +15,7 @@
--with this program; if not, write to the Free Software Foundation, Inc.,
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-local store = {}
+local store = { packages = {}, packages_full = {} }
local package_dialog = {}
-- Screenshot
@@ -396,8 +396,6 @@ function store.filter_packages(query)
end
function store.get_formspec()
- assert(store.loaded)
-
store.update_paths()
local pages = math.ceil(#store.packages / num_per_page)