Skip to content

Commit

Permalink
Silence GCC warning in mapblock_mesh
Browse files Browse the repository at this point in the history
Fixes following warning:
  warning: ‘waving’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  • Loading branch information
SmallJoker committed May 25, 2020
1 parent 212a112 commit 5311a27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/mapblock_mesh.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 5311a27

Please sign in to comment.