diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-13 05:05:22 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-13 05:05:22 +0100 |
| commit | ae6efec53be5e66506a1e0adcbe1bfaa2eb11812 (patch) | |
| tree | 04c0da7da415413763ac3f28cf9cfad8e6e37aa1 /editor/ground-editor.cpp | |
| parent | 7cec20e4f295ea2f92613b0231a765d710c2411a (diff) | |
fix crash
Diffstat (limited to 'editor/ground-editor.cpp')
| -rw-r--r-- | editor/ground-editor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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()); } |
