summaryrefslogtreecommitdiffhomepage
path: root/src/wall-atlas.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-11-25 18:09:49 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-11-25 18:09:49 +0100
commit9c00238b51442d29d33c0070c2f0f98109479553 (patch)
tree08924e689e0f1ab59f53a6df7db30753feccef6f /src/wall-atlas.cpp
parent33642dd230009231e81b88b237991378b6ca1123 (diff)
a
Diffstat (limited to 'src/wall-atlas.cpp')
-rw-r--r--src/wall-atlas.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/wall-atlas.cpp b/src/wall-atlas.cpp
index 2b0c1106..77c8e404 100644
--- a/src/wall-atlas.cpp
+++ b/src/wall-atlas.cpp
@@ -116,18 +116,18 @@ auto wall_atlas::frames(const Group& group) const -> ArrayView<const Frame>
return { &_frame_array[index], count };
}
-auto wall_atlas::group(Direction_ d, Group_ tag) const -> const Group* { return group((size_t)d, tag); }
-auto wall_atlas::group(size_t d, size_t tag) const -> const Group* { return group(d, (Group_)tag); }
+auto wall_atlas::group(Direction_ dir, Group_ gr) const -> const Group* { return group((size_t)dir, (size_t)gr); }
+auto wall_atlas::group(size_t dir, Group_ gr) const -> const Group* { return group(dir, (size_t)gr); }
-auto wall_atlas::group(size_t dir, Group_ tag) const -> const Group*
+auto wall_atlas::group(size_t dir, size_t group) const -> const Group*
{
- fm_assert(tag < Group_::COUNT);
+ fm_assert((Group_)group < Group_::COUNT);
const auto* const set_ = direction(dir);
if (!set_)
return {};
const auto& set = *set_;
- const auto memfn = set.groups[(size_t)tag].member;
+ const auto memfn = set.groups[group].member;
const Group& ret = set.*memfn;
if (ret.is_empty())
return {};