Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarBiomeDatabase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/game/StarBiomeDatabase.cpp')
-rw-r--r--source/game/StarBiomeDatabase.cpp4
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;