Fix external skins without "_sort_id"

This commit is contained in:
bell07 2019-10-29 08:11:38 +01:00 committed by GitHub
parent 166489597a
commit 2673afa087
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,8 +71,8 @@ end
local function skins_sort(skinslist) local function skins_sort(skinslist)
table.sort(skinslist, function(a,b) table.sort(skinslist, function(a,b)
local a_id = a:get_meta("_sort_id") local a_id = a:get_meta("_sort_id") or 10000
local b_id = b:get_meta("_sort_id") local b_id = b:get_meta("_sort_id") or 10000
if a_id ~= b_id then if a_id ~= b_id then
return a:get_meta("_sort_id") < b:get_meta("_sort_id") return a:get_meta("_sort_id") < b:get_meta("_sort_id")
else else