summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthe lemons <citrons@mondecitronne.com>2023-03-30 02:44:59 -0500
committerthe lemons <citrons@mondecitronne.com>2023-03-30 02:44:59 -0500
commit97b4f497aa38894f9b09be57e95a5359447ac1f7 (patch)
tree19697f8f60c02af2b1804260d7ed0ea10180d3d0
parent3458d55440012c49b7315b91dd7b4cd5bb2fcdd5 (diff)
fix typo
-rw-r--r--assets.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets.lua b/assets.lua
index e56deba..ba775da 100644
--- a/assets.lua
+++ b/assets.lua
@@ -14,7 +14,7 @@ function M.load_from(assets_dir)
assets[k] = {}
for _, file in ipairs(love.filesystem.getDirectoryItems(dir)) do
if love.filesystem.getInfo(dir..file).type == "file" then
- local name = file:match "(.+)%.[^%.]+$" or name
+ local name = file:match "(.+)%.[^%.]+$" or file
assets[k][name] = assert(loader(dir..file))
end
end