diff --git a/src/openrct2/world/Location.hpp b/src/openrct2/world/Location.hpp index 3e21c8d61b..ae9df02b6a 100644 --- a/src/openrct2/world/Location.hpp +++ b/src/openrct2/world/Location.hpp @@ -169,7 +169,7 @@ typedef uint8_t Direction; return dir ^ 2; } -constexpr bool direction_valid(Direction dir) +[[maybe_unused]] static constexpr bool direction_valid(Direction dir) { return dir < 4; }