From d828054152202dedc33986f49188414c5e942a29 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 27 Feb 2013 11:58:02 +0000 Subject: Fixed a copypasta error from rev 1224 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1226 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/ChunkMap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3