Skip to content

Commit

Permalink
Fix external skins without "_sort_id"
Browse files Browse the repository at this point in the history
  • Loading branch information
bell07 authored Oct 29, 2019
1 parent 1664895 commit 2673afa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skinlist.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ end

local function skins_sort(skinslist)
table.sort(skinslist, function(a,b)
local a_id = a:get_meta("_sort_id")
local b_id = b:get_meta("_sort_id")
local a_id = a:get_meta("_sort_id") or 10000
local b_id = b:get_meta("_sort_id") or 10000
if a_id ~= b_id then
return a:get_meta("_sort_id") < b:get_meta("_sort_id")
else
Expand Down

0 comments on commit 2673afa

Please sign in to comment.