summaryrefslogtreecommitdiffhomepage
path: root/src/global-coords.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-08 10:06:12 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-08 10:06:12 +0200
commitd17ed6b4ba01a73d33e3ff3ca8f0f6fb25259223 (patch)
treeda7b7cfccf239d447f1d2130f901ad885b07b0c7 /src/global-coords.hpp
parent59becaeefcb564356d87aaf19cf67fccea311ca3 (diff)
a
Diffstat (limited to 'src/global-coords.hpp')
-rw-r--r--src/global-coords.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/global-coords.hpp b/src/global-coords.hpp
index f0d73c6f..9bdc311a 100644
--- a/src/global-coords.hpp
+++ b/src/global-coords.hpp
@@ -32,9 +32,9 @@ struct chunk_coords_ final {
int8_t z = 0;
explicit constexpr operator chunk_coords() const noexcept { return {x, y}; }
- constexpr chunk_coords_(chunk_coords c) noexcept : x{c.x}, y{c.y} {}
constexpr chunk_coords_() noexcept = default;
- constexpr chunk_coords_(int16_t x, int16_t y, int8_t z = 0) : x{x}, y{y}, z{z} {}
+ constexpr chunk_coords_(int16_t x, int16_t y, int8_t z = 0) noexcept : x{x}, y{y}, z{z} {}
+ constexpr chunk_coords_(chunk_coords c, int8_t z = 0) noexcept : x{c.x}, y{c.y}, z{z} {}
constexpr bool operator==(const chunk_coords_&) const noexcept = default;
};