summaryrefslogtreecommitdiffhomepage
path: root/editor/tile-editor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/tile-editor.cpp')
-rw-r--r--editor/tile-editor.cpp3
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;
}
}