summaryrefslogtreecommitdiffstats
path: root/src/SetChunkData.cpp
diff options
context:
space:
mode:
authorWoazboat <f.kargl@posteo.de>2015-04-28 02:51:21 +0200
committerWoazboat <f.kargl@posteo.de>2015-05-08 15:12:32 +0200
commit8a50918d2a58a84111567d73949fe67b9424c660 (patch)
treed5551ab003e9152c27af883c0d1c061db2671975 /src/SetChunkData.cpp
parentCheck for zero length vector in Trace (diff)
downloadcuberite-8a50918d2a58a84111567d73949fe67b9424c660.tar
cuberite-8a50918d2a58a84111567d73949fe67b9424c660.tar.gz
cuberite-8a50918d2a58a84111567d73949fe67b9424c660.tar.bz2
cuberite-8a50918d2a58a84111567d73949fe67b9424c660.tar.lz
cuberite-8a50918d2a58a84111567d73949fe67b9424c660.tar.xz
cuberite-8a50918d2a58a84111567d73949fe67b9424c660.tar.zst
cuberite-8a50918d2a58a84111567d73949fe67b9424c660.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