From ae6efec53be5e66506a1e0adcbe1bfaa2eb11812 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 13 Jan 2024 05:05:22 +0100 Subject: fix crash --- editor/ground-editor.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'editor/ground-editor.cpp') diff --git a/editor/ground-editor.cpp b/editor/ground-editor.cpp index 4253575c..e99448fb 100644 --- a/editor/ground-editor.cpp +++ b/editor/ground-editor.cpp @@ -19,7 +19,11 @@ void ground_editor::load_atlases() { fm_assert(_atlases.empty()); for (const auto& g : loader.ground_atlas_list()) + { + (void)loader.ground_atlas(g.name); + fm_assert(g.atlas); _atlases[g.name] = &g; + } fm_assert(!_atlases.empty()); } -- cgit v1.2.3