summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-27 12:58:02 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-27 12:58:02 +0100
commitd828054152202dedc33986f49188414c5e942a29 (patch)
tree8807d5c05e03c29b0473228553b3d0d38ed34d50 /source
parentMinecart entity now supports IsA() self-identification (diff)
downloadcuberite-d828054152202dedc33986f49188414c5e942a29.tar
cuberite-d828054152202dedc33986f49188414c5e942a29.tar.gz
cuberite-d828054152202dedc33986f49188414c5e942a29.tar.bz2
cuberite-d828054152202dedc33986f49188414c5e942a29.tar.lz
cuberite-d828054152202dedc33986f49188414c5e942a29.tar.xz
cuberite-d828054152202dedc33986f49188414c5e942a29.tar.zst
cuberite-d828054152202dedc33986f49188414c5e942a29.zip
Diffstat (limited to 'source')
-rw-r--r--source/ChunkMap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/ChunkMap.cpp b/source/ChunkMap.cpp
index fd0d5892a..5ccdf35ca 100644
--- a/source/ChunkMap.cpp
+++ b/source/ChunkMap.cpp
@@ -119,7 +119,7 @@ cChunkMap::cChunkLayer * cChunkMap::FindLayer(int a_LayerX, int a_LayerZ)
cChunkMap::cChunkLayer * cChunkMap::GetLayerForChunk(int a_ChunkX, int a_ChunkZ)
{
const int LayerX = FAST_FLOOR_DIV(a_ChunkX, LAYER_SIZE);
- const int LayerZ = FAST_FLOOR_DIV(a_ChunkX, LAYER_SIZE);
+ const int LayerZ = FAST_FLOOR_DIV(a_ChunkZ, LAYER_SIZE);
return GetLayer(LayerX, LayerZ);
}