From 53d61d8c52773fc10345282b499d2a45740fcaa8 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 8 Jun 2024 11:08:50 +0200 Subject: clean up msvc warnings --- shaders/lightmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shaders') diff --git a/shaders/lightmap.cpp b/shaders/lightmap.cpp index b3cd1e60..69702624 100644 --- a/shaders/lightmap.cpp +++ b/shaders/lightmap.cpp @@ -225,7 +225,7 @@ void lightmap_shader::add_light(Vector2 neighbor_offset, const light_s& light) neighbor_offset += Vector2((float)half_neighbors); constexpr auto tile_size = TILE_SIZE2.sum()/2; - float range; + float range = 0; fm_assert(light.falloff < light_falloff::COUNT); switch (light.falloff) -- cgit v1.2.3