diff options
author | Matyas Dolak <dolak@eset.cz> | 2015-01-23 10:03:39 +0100 |
---|---|---|
committer | Matyas Dolak <dolak@eset.cz> | 2015-01-23 10:03:39 +0100 |
commit | 268ea71e4a88293ac6704ce1d8a0fe6caa0d3f0b (patch) | |
tree | c6ce1344fd0c9ca012d4fdb3cecd749e4d7369e3 /src | |
parent | Merge pull request #1708 from mc-server/WarningFixes (diff) | |
download | cuberite-268ea71e4a88293ac6704ce1d8a0fe6caa0d3f0b.tar cuberite-268ea71e4a88293ac6704ce1d8a0fe6caa0d3f0b.tar.gz cuberite-268ea71e4a88293ac6704ce1d8a0fe6caa0d3f0b.tar.bz2 cuberite-268ea71e4a88293ac6704ce1d8a0fe6caa0d3f0b.tar.lz cuberite-268ea71e4a88293ac6704ce1d8a0fe6caa0d3f0b.tar.xz cuberite-268ea71e4a88293ac6704ce1d8a0fe6caa0d3f0b.tar.zst cuberite-268ea71e4a88293ac6704ce1d8a0fe6caa0d3f0b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/WorldStorage/SchematicFileSerializer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/WorldStorage/SchematicFileSerializer.cpp b/src/WorldStorage/SchematicFileSerializer.cpp index 64f4cb00d..fb881e290 100644 --- a/src/WorldStorage/SchematicFileSerializer.cpp +++ b/src/WorldStorage/SchematicFileSerializer.cpp @@ -184,7 +184,9 @@ bool cSchematicFileSerializer::LoadFromSchematicNBT(cBlockArea & a_BlockArea, cP { LOG("Dimensions are missing from the schematic file (%d, %d, %d), (%d, %d, %d)", TSizeX, TSizeY, TSizeZ, - a_NBT.GetType(TSizeX), a_NBT.GetType(TSizeY), a_NBT.GetType(TSizeZ) + (TSizeX >= 0) ? a_NBT.GetType(TSizeX) : -1, + (TSizeY >= 0) ? a_NBT.GetType(TSizeY) : -1, + (TSizeZ >= 0) ? a_NBT.GetType(TSizeZ) : -1 ); return false; } |