mirror of
https://github.com/smogon/sprites.git
synced 2026-08-26 11:45:16 -05:00
spriteglob flagspec defaults to {}
This commit is contained in:
@@ -18,7 +18,7 @@ function spriteglob(pat, flagspec)
|
||||
local results = glob(pat)
|
||||
local function fn(filename)
|
||||
local sd = spritedata(tup.base(filename))
|
||||
for k, v in pairs(flagspec) do
|
||||
for k, v in pairs(flagspec or {}) do
|
||||
-- Make sure both are booleans
|
||||
if not not v ~= not not sd.data[k] then
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user