From 0bf9a9f87ff5dbe15ae8142e77fb9d9e8f9b5248 Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Sun, 3 Jul 2022 03:25:24 +0100 Subject: [PATCH] Fix uninitialized variable when computing graph hash with sub-resources --- generators/graph/voxel_generator_graph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generators/graph/voxel_generator_graph.cpp b/generators/graph/voxel_generator_graph.cpp index f67e755a..16b2b369 100644 --- a/generators/graph/voxel_generator_graph.cpp +++ b/generators/graph/voxel_generator_graph.cpp @@ -1830,7 +1830,7 @@ static uint64_t get_deep_hash(const Object &obj, if ((property.usage & property_usage) != 0) { const Variant value = obj.get(property.name); - uint64_t value_hash; + uint64_t value_hash = 0; if (value.get_type() == Variant::OBJECT) { const Object *obj_value = value.operator Object *();