summaryrefslogtreecommitdiffhomepage
path: root/src/critter.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-03-23 05:45:29 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-03-23 07:42:29 +0100
commit9f6d6555a2999256d5eceddca1d16329c401804c (patch)
tree1148e5b9f009d6e4ffd2e4e10f46a8e39f288557 /src/critter.cpp
parent0ce0318162da4e36a232ab465f66f20dc4e55288 (diff)
fix switch warnings
Diffstat (limited to 'src/critter.cpp')
-rw-r--r--src/critter.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/critter.cpp b/src/critter.cpp
index 1fc3da76..0c1e672f 100644
--- a/src/critter.cpp
+++ b/src/critter.cpp
@@ -92,9 +92,11 @@ constexpr std::array<rotation, 3> rotation_to_similar(rotation r)
case SW: return { SW, S, W };
case W: return { W, SW, NW };
case NW: return { NW, W, N };
+ default:
+ std::unreachable();
+ fm_assert(false);
}
- std::unreachable();
- fm_assert(false);
+
}
} // namespace