summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/chunk.cpp2
-rw-r--r--src/chunk.hpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/chunk.cpp b/src/chunk.cpp
index b78b8f1a..ea3fd8d7 100644
--- a/src/chunk.cpp
+++ b/src/chunk.cpp
@@ -19,6 +19,8 @@ bool chunk::empty(bool force) const noexcept
return true;
}
+chunk::chunk() noexcept = default;
+
tile_ref chunk::operator[](std::size_t idx) noexcept { return { *this, std::uint8_t(idx) }; }
tile_proto chunk::operator[](std::size_t idx) const noexcept { return tile_proto(tile_ref { *const_cast<chunk*>(this), std::uint8_t(idx) }); }
tile_ref chunk::operator[](local_coords xy) noexcept { return operator[](xy.to_index()); }
diff --git a/src/chunk.hpp b/src/chunk.hpp
index 14795de0..70a98dbd 100644
--- a/src/chunk.hpp
+++ b/src/chunk.hpp
@@ -32,7 +32,7 @@ struct chunk final
bool empty(bool force = false) const noexcept;
- chunk() noexcept = default;
+ chunk() noexcept;
chunk(const chunk&) = delete;
chunk& operator=(const chunk&) = delete;
chunk(chunk&&) noexcept;