diff --git a/src/openrct2/world/Location.hpp b/src/openrct2/world/Location.hpp index ea87892ee1..59b1e1cf57 100644 --- a/src/openrct2/world/Location.hpp +++ b/src/openrct2/world/Location.hpp @@ -144,7 +144,7 @@ typedef uint8_t Direction; * Given a direction, return the direction that points the other way, * on the same axis. */ -inline Direction direction_reverse(const Direction& dir) +constexpr Direction direction_reverse(Direction dir) { return dir ^ 2; }