summaryrefslogtreecommitdiffhomepage
path: root/loader
diff options
context:
space:
mode:
Diffstat (limited to 'loader')
-rw-r--r--loader/atlas.cpp4
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]);