Silence GCC warning in mapblock_mesh
authorSmallJoker <mk939@ymail.com>
Mon, 25 May 2020 17:10:23 +0000 (19:10 +0200)
committerSmallJoker <mk939@ymail.com>
Mon, 25 May 2020 17:10:23 +0000 (19:10 +0200)
Fixes following warning:
  warning: ‘waving’ may be used uninitialized in this function [-Wmaybe-uninitialized]

src/client/mapblock_mesh.cpp

index 0a1619b3fe4cb76e5d56eea0c914266c781892a5..1020e35f5f86df0c191e561063e568d07f6a54f4 100644 (file)
@@ -888,7 +888,7 @@ static void updateFastFaceRow(
        v3s16 p_corrected;
        v3s16 face_dir_corrected;
        u16 lights[4] = {0, 0, 0, 0};
-       u8 waving;
+       u8 waving = 0;
        TileSpec tile;
 
        // Get info of first tile