summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/critter.cpp6
-rw-r--r--src/scenery.cpp1
2 files changed, 5 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
diff --git a/src/scenery.cpp b/src/scenery.cpp
index fc018107..d95908c2 100644
--- a/src/scenery.cpp
+++ b/src/scenery.cpp
@@ -249,6 +249,7 @@ scenery_variants scenery::subtype_from_scenery_type(object_id id, class chunk& c
case scenery_type::door:
return door_scenery{id, c, {}};
case scenery_type::none:
+ default:
break;
}
fm_throw("invalid scenery type"_cf, (int)type);