diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-09 23:50:14 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-10 01:08:25 +0100 |
| commit | 7b544078eb0e7cad58bd6fc5251a3c185c9bb082 (patch) | |
| tree | 7bb4b1ac1b9eeeaef5ff300df4c76543bd932013 /editor/wall-editor.cpp | |
| parent | c7caf58e53975ad0f1d2da88708697c7b1bb5c32 (diff) | |
loader: add invalid wall atlas to the list
Diffstat (limited to 'editor/wall-editor.cpp')
| -rw-r--r-- | editor/wall-editor.cpp | 8 |
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()); } |
