diff --git a/birb/core/assets.lua b/birb/core/assets.lua index 45ed313..3eac342 100644 --- a/birb/core/assets.lua +++ b/birb/core/assets.lua @@ -70,13 +70,14 @@ function AssetManager:get(name) local asset if self.locals[name] ~= nil then asset = self.locals[name] + else + asset = self.globals[name] end - asset = self.globals[name] if (asset ~= nil) then return asset else - core.debug:fail("birb.modules.assets", "L'asset " .. name .. " n'existe pas.") + core.debug:fail("core.assets", "L'asset " .. name .. " n'existe pas.") end end