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

summaryrefslogtreecommitdiff
path: root/source/game/StarObjectDatabase.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-03-15 21:28:11 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2024-03-15 21:28:11 +1100
commit6fa0afd758a6351873df813cd7e70b1904714ed6 (patch)
treefbf45f18af0962a1d9ed3a2f44d8bb208c032645 /source/game/StarObjectDatabase.cpp
parent696abcca71274fbda2470f1941cb2e06b6ff8c61 (diff)
experimental asset load scripts
Diffstat (limited to 'source/game/StarObjectDatabase.cpp')
-rw-r--r--source/game/StarObjectDatabase.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/game/StarObjectDatabase.cpp b/source/game/StarObjectDatabase.cpp
index 68ec6a9..67a3c67 100644
--- a/source/game/StarObjectDatabase.cpp
+++ b/source/game/StarObjectDatabase.cpp
@@ -309,9 +309,9 @@ List<ObjectOrientationPtr> ObjectDatabase::parseOrientations(String const& path,
ObjectDatabase::ObjectDatabase() {
auto assets = Root::singleton().assets();
- auto files = assets->scanExtension("object");
+ auto& files = assets->scanExtension("object");
assets->queueJsons(files);
- for (auto file : files) {
+ for (auto& file : files) {
try {
String name = assets->json(file).getString("objectName");
if (m_paths.contains(name))