diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-03-10 19:34:20 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-03-10 19:34:20 +0100 |
commit | 2eca30aebc9a4f7307c31a75ca23e19fa3f1a4a7 (patch) | |
tree | f5726673e266e7db616d0c8d90b836761dafb9ce /src/WorldStorage/WSSAnvil.cpp | |
parent | Use string.reserve to avoid the need to do inplace byteswap (diff) | |
download | cuberite-2eca30aebc9a4f7307c31a75ca23e19fa3f1a4a7.tar cuberite-2eca30aebc9a4f7307c31a75ca23e19fa3f1a4a7.tar.gz cuberite-2eca30aebc9a4f7307c31a75ca23e19fa3f1a4a7.tar.bz2 cuberite-2eca30aebc9a4f7307c31a75ca23e19fa3f1a4a7.tar.lz cuberite-2eca30aebc9a4f7307c31a75ca23e19fa3f1a4a7.tar.xz cuberite-2eca30aebc9a4f7307c31a75ca23e19fa3f1a4a7.tar.zst cuberite-2eca30aebc9a4f7307c31a75ca23e19fa3f1a4a7.zip |
Diffstat (limited to '')
-rw-r--r-- | src/WorldStorage/WSSAnvil.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WorldStorage/WSSAnvil.cpp b/src/WorldStorage/WSSAnvil.cpp index eb159f28d..070738164 100644 --- a/src/WorldStorage/WSSAnvil.cpp +++ b/src/WorldStorage/WSSAnvil.cpp @@ -507,10 +507,10 @@ cChunkDef::BiomeMap * cWSSAnvil::LoadBiomeMapFromNBT(cChunkDef::BiomeMap * a_Bio // The biomes stored don't match in size return NULL; } - const int * BiomeData = (const int *)(a_NBT.GetData(a_TagIdx)); + const char * BiomeData = (a_NBT.GetData(a_TagIdx)); for (size_t i = 0; i < ARRAYCOUNT(*a_BiomeMap); i++) { - (*a_BiomeMap)[i] = (EMCSBiome)(ntohl(BiomeData[i])); + (*a_BiomeMap)[i] = (EMCSBiome)(GetBEInt(&BiomeData[i * 4])); if ((*a_BiomeMap)[i] == 0xff) { // Unassigned biomes |