From fc8433f3e38fcf447d64462dbabc02c78ab4dc42 Mon Sep 17 00:00:00 2001 From: lawnjelly Date: Fri, 13 Jun 2025 18:24:16 +0100 Subject: [PATCH] Fixup casting for cherry picked #105266 --- scene/gui/rich_text_label.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/rich_text_label.h b/scene/gui/rich_text_label.h index ab1d5f38920..2e32a9dd10a 100644 --- a/scene/gui/rich_text_label.h +++ b/scene/gui/rich_text_label.h @@ -169,7 +169,7 @@ private: ItemFont() { type = ITEM_FONT; } ~ItemFont() { if (font.is_valid()) { - RichTextLabel *owner_rtl = ObjectDB::get_instance(owner); + RichTextLabel *owner_rtl = Object::cast_to(ObjectDB::get_instance(owner)); if (owner_rtl) { font->disconnect("changed", owner_rtl, "_invalidate_fonts"); }