summaryrefslogtreecommitdiffhomepage
path: root/loader
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-07 08:14:13 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-07 08:14:24 +0100
commit2647303a34043e2437bc6ab3c1b0e1e071bf4a5d (patch)
treebdb57cc0131501c0a541534844b4ab26aa3bf29f /loader
parent29d5693a1ccebe7ff6c6b3d9a1088753c291fde8 (diff)
fix loading animations
Diffstat (limited to 'loader')
-rw-r--r--loader/loader-impl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/loader/loader-impl.cpp b/loader/loader-impl.cpp
index 29234859..cc92939f 100644
--- a/loader/loader-impl.cpp
+++ b/loader/loader-impl.cpp
@@ -136,6 +136,7 @@ std::shared_ptr<anim_atlas> loader_impl::anim_atlas(StringView name)
{
const auto path = Path::join(FM_ANIM_PATH, name);
std::filesystem::path p = std::string_view{path};
+ p.replace_extension("json");
auto anim_info = json_helper::from_json<Serialize::anim>(p);
p.replace_extension({});
auto tex = tile_texture(path);