Fix RayCast2DEditor uninitialized value

node was previously read before being set. Found by Valgrind.

(cherry picked from commit c8a39f6fb3)
This commit is contained in:
lawnjelly 2022-09-06 10:02:22 +01:00 committed by Rémi Verschelde
parent b44d47f582
commit be2739b1c7

View File

@ -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;