From 41cc0cd5540a61bedc8a455d3cd4a083661f0341 Mon Sep 17 00:00:00 2001 From: lawnjelly Date: Tue, 6 Sep 2022 10:02:22 +0100 Subject: [PATCH] Fix RayCast2DEditor uninitialized value node was previously read before being set. Found by Valgrind. --- editor/plugins/ray_cast_2d_editor_plugin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/ray_cast_2d_editor_plugin.h b/editor/plugins/ray_cast_2d_editor_plugin.h index 6a0b68bd0..9358f29ee 100644 --- a/editor/plugins/ray_cast_2d_editor_plugin.h +++ b/editor/plugins/ray_cast_2d_editor_plugin.h @@ -41,7 +41,7 @@ class RayCast2DEditor : public Control { UndoRedo *undo_redo = nullptr; CanvasItemEditor *canvas_item_editor = nullptr; - RayCast2D *node; + RayCast2D *node = nullptr; bool pressed = false; Point2 original_cast_to;