diff options
Diffstat (limited to 'editor/ground-editor.cpp')
-rw-r--r-- | editor/ground-editor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/ground-editor.cpp b/editor/ground-editor.cpp index 4ab697ee..55b779b5 100644 --- a/editor/ground-editor.cpp +++ b/editor/ground-editor.cpp @@ -35,7 +35,7 @@ void ground_editor::load_atlases() else loader.invalid_ground_atlas(); fm_assert(g.atlas); - _atlases[g.name] = &g; + _atlases[g.name] = g; } fm_assert(!_atlases.empty()); } @@ -43,7 +43,7 @@ void ground_editor::load_atlases() std::shared_ptr<ground_atlas> ground_editor::maybe_atlas(StringView str) { if (auto it = _atlases.find(str); it != _atlases.end()) - return it->second->atlas; + return it->second.atlas; else return nullptr; } |