diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-03-15 21:28:11 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-03-15 21:28:11 +1100 |
commit | 6fa0afd758a6351873df813cd7e70b1904714ed6 (patch) | |
tree | fbf45f18af0962a1d9ed3a2f44d8bb208c032645 /source/game/StarDungeonGenerator.cpp | |
parent | 696abcca71274fbda2470f1941cb2e06b6ff8c61 (diff) |
experimental asset load scripts
Diffstat (limited to 'source/game/StarDungeonGenerator.cpp')
-rw-r--r-- | source/game/StarDungeonGenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/game/StarDungeonGenerator.cpp b/source/game/StarDungeonGenerator.cpp index 4014b34..96285df 100644 --- a/source/game/StarDungeonGenerator.cpp +++ b/source/game/StarDungeonGenerator.cpp @@ -1309,7 +1309,7 @@ namespace Dungeon { DungeonDefinitions::DungeonDefinitions() : m_paths(), m_cacheMutex(), m_definitionCache(DefinitionsCacheSize) { auto assets = Root::singleton().assets(); - for (auto file : assets->scan(".dungeon")) { + for (auto& file : assets->scan(".dungeon")) { Json dungeon = assets->json(file); m_paths.insert(dungeon.get("metadata").getString("name"), file); } |