diff options
author | Mattes D <github@xoft.cz> | 2016-12-15 14:57:48 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2016-12-15 14:57:48 +0100 |
commit | caa05e7935eab20259f9bd02a278d97c04978764 (patch) | |
tree | 24a0b525c79b552a50700784a2e37a87489b85f4 /src/WorldStorage | |
parent | APIDump: Proper error messages on apicheck failures. (diff) | |
download | cuberite-caa05e7935eab20259f9bd02a278d97c04978764.tar cuberite-caa05e7935eab20259f9bd02a278d97c04978764.tar.gz cuberite-caa05e7935eab20259f9bd02a278d97c04978764.tar.bz2 cuberite-caa05e7935eab20259f9bd02a278d97c04978764.tar.lz cuberite-caa05e7935eab20259f9bd02a278d97c04978764.tar.xz cuberite-caa05e7935eab20259f9bd02a278d97c04978764.tar.zst cuberite-caa05e7935eab20259f9bd02a278d97c04978764.zip |
Diffstat (limited to '')
-rw-r--r-- | src/WorldStorage/WorldStorage.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/WorldStorage/WorldStorage.cpp b/src/WorldStorage/WorldStorage.cpp index 55555d731..29fe78d4f 100644 --- a/src/WorldStorage/WorldStorage.cpp +++ b/src/WorldStorage/WorldStorage.cpp @@ -142,6 +142,8 @@ size_t cWorldStorage::GetSaveQueueLength(void) void cWorldStorage::QueueLoadChunk(int a_ChunkX, int a_ChunkZ, cChunkCoordCallback * a_Callback) { + ASSERT((a_ChunkX > -0x08000000) && (a_ChunkX < 0x08000000)); + ASSERT((a_ChunkZ > -0x08000000) && (a_ChunkZ < 0x08000000)); ASSERT(m_World->IsChunkQueued(a_ChunkX, a_ChunkZ)); m_LoadQueue.EnqueueItem(cChunkCoordsWithCallback(a_ChunkX, a_ChunkZ, a_Callback)); |