summaryrefslogtreecommitdiffhomepage
path: root/editor/ground-editor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/ground-editor.cpp')
-rw-r--r--editor/ground-editor.cpp5
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;
}