diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-07 23:38:31 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-08 08:43:49 +0100 |
| commit | a6514d1a95d0f84f0935866215463ef6aed23e19 (patch) | |
| tree | 639075646b1ea42a3cd4a76ae59af7dda0c4b14a /editor/ground-editor.cpp | |
| parent | 4575194adb4615deeca174044a872093c3664ad4 (diff) | |
loader: work toward removing duplicate atlas code
Diffstat (limited to 'editor/ground-editor.cpp')
| -rw-r--r-- | editor/ground-editor.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/editor/ground-editor.cpp b/editor/ground-editor.cpp index 82a76405..653ad122 100644 --- a/editor/ground-editor.cpp +++ b/editor/ground-editor.cpp @@ -30,7 +30,10 @@ void ground_editor::load_atlases() fm_assert(_atlases.empty()); for (const auto& g : loader.ground_atlas_list()) { - (void)loader.ground_atlas(g.name); + if (g.name != loader.INVALID) [[likely]] + (void)loader.ground_atlas(g.name); + else + loader.make_invalid_ground_atlas(); fm_assert(g.atlas); _atlases[g.name] = &g; } |
