summaryrefslogtreecommitdiffstats
path: root/source/cChunkMap.cpp
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-27 23:57:33 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-27 23:57:33 +0100
commitd57753cd6873ac279f8de163393db2c1cc6a2a00 (patch)
tree176da607f1b633210ff6ce7a168e269122a32077 /source/cChunkMap.cpp
parentFixed a little error in cPacket_PlayerListItem.cpp (diff)
downloadcuberite-d57753cd6873ac279f8de163393db2c1cc6a2a00.tar
cuberite-d57753cd6873ac279f8de163393db2c1cc6a2a00.tar.gz
cuberite-d57753cd6873ac279f8de163393db2c1cc6a2a00.tar.bz2
cuberite-d57753cd6873ac279f8de163393db2c1cc6a2a00.tar.lz
cuberite-d57753cd6873ac279f8de163393db2c1cc6a2a00.tar.xz
cuberite-d57753cd6873ac279f8de163393db2c1cc6a2a00.tar.zst
cuberite-d57753cd6873ac279f8de163393db2c1cc6a2a00.zip
Diffstat (limited to '')
-rw-r--r--source/cChunkMap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/cChunkMap.cpp b/source/cChunkMap.cpp
index 2f8339176..90b3258e7 100644
--- a/source/cChunkMap.cpp
+++ b/source/cChunkMap.cpp
@@ -653,7 +653,7 @@ cChunkMap::cChunkLayer* cChunkMap::LoadLayer(int a_LayerX, int a_LayerZ )
if( fread( &PakVersion, sizeof(PakVersion), 1, f) != 1 ) { LOGERROR("ERROR 1 READING FROM FILE %s", SourceFile); fclose(f); return false; }
if( PakVersion != 1 ) { LOGERROR("WRONG PAK VERSION!"); fclose(f); return 0; }
if( fread( &ChunkVersion, sizeof(ChunkVersion), 1, f) != 1 ) { LOGERROR("ERROR 2 READING FROM FILE %s", SourceFile); fclose(f); return false; }
- if( PakVersion != 1 ) { LOGERROR("WRONG CHUNK VERSION!"); fclose(f); return 0; }
+ if( ChunkVersion != 1 ) { LOGERROR("WRONG CHUNK VERSION!"); fclose(f); return 0; }
short NumChunks = 0;
if( fread( &NumChunks, sizeof(NumChunks), 1, f) != 1 ) { LOGERROR("ERROR 3 READING FROM FILE %s", SourceFile); fclose(f); return false; }