From c3d05ab91f2d1b50837f77f9b439a00e5a3c3cc6 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 27 May 2022 00:38:55 +0200 Subject: [PATCH] Fix shadowed declaration warning. --- modules/props/prop_mesher.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/props/prop_mesher.cpp b/modules/props/prop_mesher.cpp index 1eb4fcb95..ef0ba985c 100644 --- a/modules/props/prop_mesher.cpp +++ b/modules/props/prop_mesher.cpp @@ -501,10 +501,10 @@ void PropMesher::add_tiled_wall_simple(const int width, const int height, const } else { int indx = Math::rand() % flavour_rects.size(); - float yh = flavour_y_sizes[indx]; - add_tiled_wall_mesh_rect_simple(x, ych, yh, 0, 0, transform, flavour_rects[indx]); + float fyh = flavour_y_sizes[indx]; + add_tiled_wall_mesh_rect_simple(x, ych, fyh, 0, 0, transform, flavour_rects[indx]); - ych += yh; + ych += fyh; } } }