summaryrefslogtreecommitdiffhomepage
path: root/editor/scenery-json.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/scenery-json.cpp')
-rw-r--r--editor/scenery-json.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/scenery-json.cpp b/editor/scenery-json.cpp
index a6756512..c5d7d043 100644
--- a/editor/scenery-json.cpp
+++ b/editor/scenery-json.cpp
@@ -1,13 +1,14 @@
#include "scenery-editor.hpp"
#include "serialize/scenery.hpp"
#include "loader/loader.hpp"
+#include "loader/scenery.hpp"
namespace floormat {
void scenery_editor::load_atlases()
{
_atlases.clear();
- for (auto& s : loader.sceneries())
+ for (const auto& s : loader.sceneries())
_atlases[s.name] = scenery_{s.name, s.descr, s.proto};
}