summaryrefslogtreecommitdiffstats
path: root/source/ChestEntity.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/ChestEntity.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/ChestEntity.cpp b/source/ChestEntity.cpp
index dbd7f6ef2..e0f818de0 100644
--- a/source/ChestEntity.cpp
+++ b/source/ChestEntity.cpp
@@ -144,9 +144,9 @@ void cChestEntity::UsedBy(cPlayer * a_Player)
// Instead of marking the chunk as dirty upon chest contents change, we mark it dirty now
// We cannot properly detect contents change, but such a change doesn't happen without a player opening the chest first.
// The few false positives aren't much to worry about
- int ChunkX, ChunkY = 0, ChunkZ;
+ int ChunkX, ChunkZ;
cChunkDef::BlockToChunk(m_PosX, m_PosY, m_PosZ, ChunkX, ChunkZ);
- m_World->MarkChunkDirty(ChunkX, ChunkY, ChunkZ);
+ m_World->MarkChunkDirty(ChunkX, ChunkZ);
}