diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-01-16 04:43:55 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-01-16 04:44:20 +0100 |
commit | 36a08e45fc185d1f93b952f960edfadc28fce1c2 (patch) | |
tree | b8ecc4fb6010826a11b9b80752caa44bbd9bd728 /loader | |
parent | 61b0e7884a643381cca5c587a201e58bd4f1dd2b (diff) |
compat/format: fix after fmtlib update
Diffstat (limited to 'loader')
-rw-r--r-- | loader/atlas.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loader/atlas.cpp b/loader/atlas.cpp index 89b988e9..bda6a46b 100644 --- a/loader/atlas.cpp +++ b/loader/atlas.cpp @@ -30,7 +30,7 @@ std::shared_ptr<struct tile_atlas> loader_impl::tile_atlas(StringView filename) fm_assert(!tile_atlas_map.empty()); auto it = tile_atlas_map.find(filename); if (it == tile_atlas_map.end()) - fm_throw("no such tile atlas '{}'"_cf, filename.data()); + fm_throw("no such tile atlas '{}'"_cf, filename); return it->second; } @@ -58,7 +58,7 @@ std::shared_ptr<anim_atlas> loader_impl::anim_atlas(StringView name, StringView auto it = std::find_if(anim_info.groups.cbegin(), anim_info.groups.cend(), [&](const anim_group& x) { return x.name == group.mirror_from; }); if (it == anim_info.groups.cend()) - fm_throw("can't find group '{}' to mirror from '{}'"_cf, group.mirror_from.data(), group.name.data()); + fm_throw("can't find group '{}' to mirror from '{}'"_cf, group.mirror_from, group.name); group.frames = it->frames; for (anim_frame& f : group.frames) f.ground = Vector2i((Int)f.size[0] - f.ground[0], f.ground[1]); |