summaryrefslogtreecommitdiffstats
path: root/src/SetChunkData.cpp
diff options
context:
space:
mode:
authorWoazboat <f.kargl@posteo.de>2015-04-28 02:26:25 +0200
committerWoazboat <f.kargl@posteo.de>2015-04-28 02:26:25 +0200
commit4e8b4981d877b28e0784f294341072fa3f279fb4 (patch)
treeb1ab42a4bb7a047e0aadb6789b678807c86fed47 /src/SetChunkData.cpp
parentRemoved redundant temp iterator. std::list.erase already returns (diff)
downloadcuberite-4e8b4981d877b28e0784f294341072fa3f279fb4.tar
cuberite-4e8b4981d877b28e0784f294341072fa3f279fb4.tar.gz
cuberite-4e8b4981d877b28e0784f294341072fa3f279fb4.tar.bz2
cuberite-4e8b4981d877b28e0784f294341072fa3f279fb4.tar.lz
cuberite-4e8b4981d877b28e0784f294341072fa3f279fb4.tar.xz
cuberite-4e8b4981d877b28e0784f294341072fa3f279fb4.tar.zst
cuberite-4e8b4981d877b28e0784f294341072fa3f279fb4.zip
Diffstat (limited to 'src/SetChunkData.cpp')
-rw-r--r--src/SetChunkData.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SetChunkData.cpp b/src/SetChunkData.cpp
index e5afd96ed..7549b0dbf 100644
--- a/src/SetChunkData.cpp
+++ b/src/SetChunkData.cpp
@@ -103,7 +103,7 @@ void cSetChunkData::CalculateHeightMap(void)
int index = cChunkDef::MakeIndexNoCheck(x, y, z);
if (m_BlockTypes[index] != E_BLOCK_AIR)
{
- m_HeightMap[x + z * cChunkDef::Width] = (HEIGHTTYPE)y;
+ m_HeightMap[x + z * cChunkDef::Width] = static_cast<HEIGHTTYPE>(y);
break;
}
} // for y