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

summaryrefslogtreecommitdiff
path: root/source/game/StarMaterialDatabase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/game/StarMaterialDatabase.cpp')
-rw-r--r--source/game/StarMaterialDatabase.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/game/StarMaterialDatabase.cpp b/source/game/StarMaterialDatabase.cpp
index abb49ad..6577937 100644
--- a/source/game/StarMaterialDatabase.cpp
+++ b/source/game/StarMaterialDatabase.cpp
@@ -54,13 +54,13 @@ MaterialDatabase::MaterialDatabase() {
setMetaMaterial(matId, MaterialDatabase::MetaMaterialInfo{matName, matId, matCollisionKind, blocksLiquidFlow});
}
- auto materials = assets->scanExtension("material");
- auto mods = assets->scanExtension("matmod");
+ auto& materials = assets->scanExtension("material");
+ auto& mods = assets->scanExtension("matmod");
assets->queueJsons(materials);
assets->queueJsons(mods);
- for (auto file : materials) {
+ for (auto& file : materials) {
try {
auto matConfig = assets->json(file);
@@ -140,7 +140,7 @@ MaterialDatabase::MaterialDatabase() {
}
}
- for (auto file : mods) {
+ for (auto& file : mods) {
try {
auto modConfig = assets->json(file);