diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-22 10:04:57 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-22 10:04:57 +0100 |
commit | 1d8bbb932f0c148f58ecda3ff0d5ab6705fa88c1 (patch) | |
tree | 1fde4300004e8de1ff8536f9cfe2defc4c43a999 /editor | |
parent | cf1c5f4dcd59a45b2e03851d2a8e2a640c80d066 (diff) |
a
Diffstat (limited to 'editor')
-rw-r--r-- | editor/tile-editor.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/tile-editor.cpp b/editor/tile-editor.cpp index 2dd8a16d..940e3c1c 100644 --- a/editor/tile-editor.cpp +++ b/editor/tile-editor.cpp @@ -28,10 +28,9 @@ void tile_editor::load_atlases() const auto filename = _name + ".json"; for (const auto& atlas : loader.tile_atlases(filename, default_pass_mode)) { - const auto [name, _ext] = Path::splitExtension(atlas->name()); auto& [_, vec] = _permutation; vec.reserve(atlas->num_tiles()); - _atlases[name] = atlas; + _atlases[atlas->name()] = atlas; } } |