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

summaryrefslogtreecommitdiff
path: root/source/game/StarTenantDatabase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/game/StarTenantDatabase.cpp')
-rw-r--r--source/game/StarTenantDatabase.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/game/StarTenantDatabase.cpp b/source/game/StarTenantDatabase.cpp
index 1cfa0c4..20a1a72 100644
--- a/source/game/StarTenantDatabase.cpp
+++ b/source/game/StarTenantDatabase.cpp
@@ -15,9 +15,9 @@ bool Tenant::criteriaSatisfied(StringMap<unsigned> const& colonyTags) const {
TenantDatabase::TenantDatabase() {
auto assets = Root::singleton().assets();
- auto files = assets->scanExtension("tenant");
+ auto& files = assets->scanExtension("tenant");
assets->queueJsons(files);
- for (auto file : files) {
+ for (auto& file : files) {
try {
String name = assets->json(file).getString("name");
if (m_paths.contains(name))