修复IMG模块加载计数器问题

This commit is contained in:
MrZ626
2020-12-13 23:37:23 +08:00
parent 2d974543ff
commit fdbbdfea05

View File

@@ -10,9 +10,11 @@ function IMG.init(list)
end
function IMG.getCount()return count end
local function load(skip)
local loaded=0
for k,v in next,list do
IMG[k]=love.graphics.newImage("media/image/"..v)
if not skip and i~=count then
loaded=loaded+1
if not skip and loaded~=count then
coroutine.yield()
end
end