summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-03-24 14:20:04 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-03-24 14:20:04 +0100
commite95cf30ce5e1a1b8573db963ffbb5f3a17ff7df2 (patch)
tree18756280bb90fff5615c95bc0a063fe1f53d671d
parentdf707da114b91a9d20976fc37c2efce0cd3cb26a (diff)
d
-rw-r--r--src/wall-atlas.cpp2
-rw-r--r--src/wall-atlas.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/wall-atlas.cpp b/src/wall-atlas.cpp
index 49b00311..d82aace3 100644
--- a/src/wall-atlas.cpp
+++ b/src/wall-atlas.cpp
@@ -196,7 +196,7 @@ auto wall_atlas::group(size_t dir, size_t tag) const -> const Group*
return {};
}
-auto wall_atlas::group(const Direction& dir, Group_ tag) const -> const Group*
+auto wall_atlas::group(const Direction& dir, Group_ tag) -> const Group*
{
fm_assert(tag < Group_::COUNT);
const auto memfn = dir.groups[(size_t)tag].member;
diff --git a/src/wall-atlas.hpp b/src/wall-atlas.hpp
index 2bc03dc0..9891791d 100644
--- a/src/wall-atlas.hpp
+++ b/src/wall-atlas.hpp
@@ -135,7 +135,7 @@ public:
const Group* group(Direction_ dir, Group_ group) const;
const Group* group(size_t dir, size_t group) const;
const Group* group(size_t dir, Group_ tag) const;
- const Group* group(const Direction& dir, Group_ group) const;
+ static const Group* group(const Direction& dir, Group_ group);
const Direction* direction(size_t dir) const;
const Direction* direction(Direction_ dir) const;
const Direction& calc_direction(Direction_ dir) const;