aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2020-05-25 19:10:23 +0200
committerSmallJoker <mk939@ymail.com>2020-05-25 19:10:23 +0200
commit5311a275235d2132443643199330953c877b794a (patch)
tree050ba7a5047f9ade80625931199959e61d3bc40c /src/client
parent212a1123e0fd930faf2467b09761815b849efcaf (diff)
downloadminetest-5311a275235d2132443643199330953c877b794a.tar.gz
minetest-5311a275235d2132443643199330953c877b794a.tar.bz2
minetest-5311a275235d2132443643199330953c877b794a.zip
Silence GCC warning in mapblock_mesh
Fixes following warning: warning: ‘waving’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Diffstat (limited to 'src/client')
-rw-r--r--src/client/mapblock_mesh.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/mapblock_mesh.cpp b/src/client/mapblock_mesh.cpp
index 0a1619b3f..1020e35f5 100644
--- a/src/client/mapblock_mesh.cpp
+++ b/src/client/mapblock_mesh.cpp
@@ -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