summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/chunk-collision.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/chunk-collision.cpp b/src/chunk-collision.cpp
index b6ac2745..bbbacaca 100644
--- a/src/chunk-collision.cpp
+++ b/src/chunk-collision.cpp
@@ -122,6 +122,8 @@ void chunk::_replace_bbox(const bbox& x0, const bbox& x1, bool b0, bool b1)
return;
case 0 << 1 | 0 << 0:
return;
+ default:
+ break;
}
std::unreachable();
}
@@ -132,6 +134,7 @@ bool chunk::can_place_object(const object_proto& proto, local_coords pos)
switch (proto.pass)
{
+ default:
case pass_mode::blocked:
case pass_mode::see_through:
break;