From 0e13a7d1245a71f9c62ff795fb513e254285fdd2 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Mon, 28 Oct 2024 23:18:05 +0000 Subject: [PATCH] Fix 3f81124: Invalid data used for height map curves after first run. (#13039) Static variable depended on other non-static variables. --- src/tgp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tgp.cpp b/src/tgp.cpp index efe3fa96af..1ce32fda86 100644 --- a/src/tgp.cpp +++ b/src/tgp.cpp @@ -558,7 +558,7 @@ static void HeightMapCurves(uint level) const ControlPoint curve_map_4[] = { { F(0.0), F(0.0) }, { F(0.4), F(0.3) }, { F(0.7), F(0.8) }, { F(0.92), F(0.99) }, { F(1.0), F(0.99) } }; #undef F - static const std::span curve_maps[] = { curve_map_1, curve_map_2, curve_map_3, curve_map_4 }; + const std::span curve_maps[] = { curve_map_1, curve_map_2, curve_map_3, curve_map_4 }; std::array ht{};