summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
Diffstat (limited to 'editor')
-rw-r--r--editor/scenery-json.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/editor/scenery-json.cpp b/editor/scenery-json.cpp
index e2bf24a6..48ab287f 100644
--- a/editor/scenery-json.cpp
+++ b/editor/scenery-json.cpp
@@ -10,7 +10,10 @@ void scenery_editor::load_atlases()
{
_atlases.clear();
for (const auto& s : loader.scenery_list())
- _atlases[s.name] = { s.name, loader.scenery(s.name) };
+ _atlases[s.name] = {
+ .name = s.name,
+ .proto = loader.scenery(s.name, s.name == loader.INVALID ? loader_policy::ignore : loader_policy::error)
+ };
}
} // namespace floormat