summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-12 17:48:01 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-12 18:24:55 +0100
commitb84cfa301e2fb131275711c67a2e91e3cda65c4e (patch)
treed060791ca783f6b9c4da5959535ec0eb85dd73cf /editor
parenteea6fad65d5c9fecfb47c4a1c516c253cee85fd2 (diff)
loader: fix static initializer mess
Diffstat (limited to 'editor')
-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 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<std::shared_ptr<tile_atlas>>;
const auto filename = _name + ".json";
- for (auto& atlas : json_helper::from_json<atlas_array>(Path::join(image_path, filename)))
+ for (auto& atlas : json_helper::from_json<atlas_array>(Path::join(loader_::IMAGE_PATH, filename)))
{
const StringView name = Path::splitExtension(atlas->name()).first();
auto& [_, vec] = _permutation;