summaryrefslogtreecommitdiffstats
path: root/Tools/QtBiomeVisualiser
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-09-18 10:26:28 +0200
committermadmaxoft <github@xoft.cz>2014-09-18 10:26:28 +0200
commit09c67bddf75a2ed244b274462305136da08b20f3 (patch)
treee18c2b86face22b77f43178d82291aa58d4c7b39 /Tools/QtBiomeVisualiser
parentQtBiomeVisualiser: Fixed linux compilation. (diff)
downloadcuberite-09c67bddf75a2ed244b274462305136da08b20f3.tar
cuberite-09c67bddf75a2ed244b274462305136da08b20f3.tar.gz
cuberite-09c67bddf75a2ed244b274462305136da08b20f3.tar.bz2
cuberite-09c67bddf75a2ed244b274462305136da08b20f3.tar.lz
cuberite-09c67bddf75a2ed244b274462305136da08b20f3.tar.xz
cuberite-09c67bddf75a2ed244b274462305136da08b20f3.tar.zst
cuberite-09c67bddf75a2ed244b274462305136da08b20f3.zip
Diffstat (limited to 'Tools/QtBiomeVisualiser')
-rw-r--r--Tools/QtBiomeVisualiser/ChunkSource.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/QtBiomeVisualiser/ChunkSource.cpp b/Tools/QtBiomeVisualiser/ChunkSource.cpp
index 9e0ea5751..2235816bc 100644
--- a/Tools/QtBiomeVisualiser/ChunkSource.cpp
+++ b/Tools/QtBiomeVisualiser/ChunkSource.cpp
@@ -120,8 +120,8 @@ static void biomesToImage(cChunkDef::BiomeMap & a_Biomes, Chunk::Image & a_Image
{
// Make sure the two arrays are of the same size, compile-time.
// Note that a_Image is actually 4 items per pixel, so the array is 4 times bigger:
- static const char Check1[4 * ARRAYCOUNT(a_Biomes) - ARRAYCOUNT(a_Image) + 1];
- static const char Check2[ARRAYCOUNT(a_Image) - 4 * ARRAYCOUNT(a_Biomes) + 1];
+ static const char Check1[4 * ARRAYCOUNT(a_Biomes) - ARRAYCOUNT(a_Image) + 1] = {};
+ static const char Check2[ARRAYCOUNT(a_Image) - 4 * ARRAYCOUNT(a_Biomes) + 1] = {};
// Convert the biomes into color:
for (size_t i = 0; i < ARRAYCOUNT(a_Biomes); i++)