From b84cfa301e2fb131275711c67a2e91e3cda65c4e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 12 Nov 2022 17:48:01 +0100 Subject: loader: fix static initializer mess --- editor/tile-editor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'editor') diff --git a/editor/tile-editor.cpp b/editor/tile-editor.cpp index e1661c64..d89a291d 100644 --- a/editor/tile-editor.cpp +++ b/editor/tile-editor.cpp @@ -18,10 +18,9 @@ tile_editor::tile_editor(editor_mode mode, StringView name) : _name{ name}, _mod void tile_editor::load_atlases() { - const StringView image_path = FM_IMAGE_PATH; using atlas_array = std::vector>; const auto filename = _name + ".json"; - for (auto& atlas : json_helper::from_json(Path::join(image_path, filename))) + for (auto& atlas : json_helper::from_json(Path::join(loader_::IMAGE_PATH, filename))) { const StringView name = Path::splitExtension(atlas->name()).first(); auto& [_, vec] = _permutation; -- cgit v1.2.3