Fix for buildLoop still trying to loop after LevelLoader destruction for some reason.

This commit is contained in:
Nick Winter 2014-08-18 14:09:28 -07:00
parent 071f006acf
commit 2588ec67ff

View file

@ -229,7 +229,7 @@ module.exports = class LevelLoader extends CocoClass
res.markLoading()
@spriteSheetsToBuild.push res
@buildLoopInterval = setInterval @buildLoop, 5
@buildLoopInterval = setInterval @buildLoop, 5 if @spriteSheetsToBuild.length
maybeLoadURL: (url, Model, resourceName) ->
return if @supermodel.getModel(url)