summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-12-01 13:21:32 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-12-01 13:21:32 +0100
commit81f68a2c83c0c25259cd526c8bb4839caa361e8f (patch)
treeff2db492dbd3dddfc341370a4cf4b2a95abdae70 /editor
parent511d823c2dc2b917afed6a9c50ad940e5c58c5d5 (diff)
serialize, loader, test: add serializing scenery
Diffstat (limited to 'editor')
-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};
}