summaryrefslogtreecommitdiffhomepage
path: root/editor/wall-editor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/wall-editor.cpp')
-rw-r--r--editor/wall-editor.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/editor/wall-editor.cpp b/editor/wall-editor.cpp
index 681397a5..1d2e7cb3 100644
--- a/editor/wall-editor.cpp
+++ b/editor/wall-editor.cpp
@@ -51,7 +51,15 @@ void wall_editor::load_atlases()
{
fm_assert(_atlases.empty());
for (const auto& wa : loader.wall_atlas_list())
+ {
+ if (wa.name != loader.INVALID) [[likely]]
+ (void)loader.wall_atlas(wa.name);
+ else
+ loader.make_invalid_wall_atlas();
+ fm_assert(wa.atlas);
_atlases[wa.name] = &wa;
+ }
+
fm_assert(!_atlases.empty());
}