From 1d8bbb932f0c148f58ecda3ff0d5ab6705fa88c1 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 22 Nov 2023 10:04:57 +0100 Subject: a --- editor/tile-editor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'editor/tile-editor.cpp') 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; } } -- cgit v1.2.3