diff --git a/scene/gui/button.cpp b/scene/gui/button.cpp index 2d17fb13912b..fbfe904d58a6 100644 --- a/scene/gui/button.cpp +++ b/scene/gui/button.cpp @@ -140,8 +140,8 @@ void Button::_notification(int p_what) { if (has_focus()) { - Ref style = get_stylebox("focus"); - style->draw(ci, Rect2(Point2(), size)); + Ref hover_style = get_stylebox("focus"); + hover_style->draw(ci, Rect2(Point2(), size)); } Ref font = get_font("font");