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/StarBiomeDatabase.cpp | |
parent | 696abcca71274fbda2470f1941cb2e06b6ff8c61 (diff) |
experimental asset load scripts
Diffstat (limited to 'source/game/StarBiomeDatabase.cpp')
-rw-r--r-- | source/game/StarBiomeDatabase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/game/StarBiomeDatabase.cpp b/source/game/StarBiomeDatabase.cpp index 9a39781..4b13280 100644 --- a/source/game/StarBiomeDatabase.cpp +++ b/source/game/StarBiomeDatabase.cpp @@ -15,9 +15,9 @@ BiomeDatabase::BiomeDatabase() { // 'type' here is the extension of the file, and determines the selector type auto scanFiles = [=](String const& type, ConfigMap& map) { - auto files = assets->scanExtension(type); + auto& files = assets->scanExtension(type); assets->queueJsons(files); - for (auto path : files) { + for (auto& path : files) { auto parameters = assets->json(path); if (parameters.isNull()) continue; |