diff --git a/editor/plugins/ray_cast_2d_editor_plugin.h b/editor/plugins/ray_cast_2d_editor_plugin.h index 6a0b68bd091..9358f29ee57 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;