1
0
Fork 0

Fix 3f81124: Invalid data used for height map curves after first run.

Static variable depended on other non-static variables.
pull/13039/head
Peter Nelson 2024-10-28 22:25:33 +00:00
parent a96a83e330
commit e8293745ee
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
1 changed files with 1 additions and 1 deletions

View File

@ -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<const ControlPoint> curve_maps[] = { curve_map_1, curve_map_2, curve_map_3, curve_map_4 };
const std::span<const ControlPoint> curve_maps[] = { curve_map_1, curve_map_2, curve_map_3, curve_map_4 };
std::array<Height, std::size(curve_maps)> ht{};