X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FChunkStore.hpp;h=79a9db1d1373ccb859705a06acf3deb4d115d201;hb=1b3b7203d0db35236108869961c77eaf31881d4b;hp=12debef87b8f4997460959c40d5b71f668f91d22;hpb=4727825186798902f68df5b99a6a32f0ef618454;p=blank.git diff --git a/src/world/ChunkStore.hpp b/src/world/ChunkStore.hpp index 12debef..79a9db1 100644 --- a/src/world/ChunkStore.hpp +++ b/src/world/ChunkStore.hpp @@ -26,7 +26,8 @@ public: ChunkIndex *ClosestIndex(const ExactLocation::Coarse &pos); /// returns nullptr if given position is not loaded - Chunk *Get(const ExactLocation::Coarse &); + Chunk *Get(const ExactLocation::Coarse &) noexcept; + const Chunk *Get(const ExactLocation::Coarse &) const noexcept; /// returns nullptr if given position is not indexed Chunk *Allocate(const ExactLocation::Coarse &);