diff options
author | Mattes D <github@xoft.cz> | 2014-11-28 22:46:58 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-11-28 22:46:58 +0100 |
commit | 883230abbcc20a4a27e1d8909894be63dee75d43 (patch) | |
tree | ecbdc082281e820fc98a302add93400ba467dbd7 /src/Generating/ChunkGenerator.cpp | |
parent | CMake: Fixed linux builds. (diff) | |
parent | Chunk: Fixed same-name iterators. (diff) | |
download | cuberite-883230abbcc20a4a27e1d8909894be63dee75d43.tar cuberite-883230abbcc20a4a27e1d8909894be63dee75d43.tar.gz cuberite-883230abbcc20a4a27e1d8909894be63dee75d43.tar.bz2 cuberite-883230abbcc20a4a27e1d8909894be63dee75d43.tar.lz cuberite-883230abbcc20a4a27e1d8909894be63dee75d43.tar.xz cuberite-883230abbcc20a4a27e1d8909894be63dee75d43.tar.zst cuberite-883230abbcc20a4a27e1d8909894be63dee75d43.zip |
Diffstat (limited to 'src/Generating/ChunkGenerator.cpp')
-rw-r--r-- | src/Generating/ChunkGenerator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Generating/ChunkGenerator.cpp b/src/Generating/ChunkGenerator.cpp index 92e1bb31d..3ee02c767 100644 --- a/src/Generating/ChunkGenerator.cpp +++ b/src/Generating/ChunkGenerator.cpp @@ -191,13 +191,13 @@ EMCSBiome cChunkGenerator::GetBiomeAt(int a_BlockX, int a_BlockZ) BLOCKTYPE cChunkGenerator::GetIniBlock(cIniFile & a_IniFile, const AString & a_SectionName, const AString & a_ValueName, const AString & a_Default) { AString BlockType = a_IniFile.GetValueSet(a_SectionName, a_ValueName, a_Default); - BLOCKTYPE Block = BlockStringToType(BlockType); + int Block = BlockStringToType(BlockType); if (Block < 0) { LOGWARN("[%s].%s Could not parse block value \"%s\". Using default: \"%s\".", a_SectionName.c_str(), a_ValueName.c_str(), BlockType.c_str(), a_Default.c_str()); - return BlockStringToType(a_Default); + return static_cast<BLOCKTYPE>(BlockStringToType(a_Default)); } - return Block; + return static_cast<BLOCKTYPE>(Block); } |