Fixup casting for cherry picked #105266

This commit is contained in:
lawnjelly 2025-06-13 18:24:16 +01:00
parent bdb25bd710
commit fc8433f3e3

View file

@ -169,7 +169,7 @@ private:
ItemFont() { type = ITEM_FONT; }
~ItemFont() {
if (font.is_valid()) {
RichTextLabel *owner_rtl = ObjectDB::get_instance<RichTextLabel>(owner);
RichTextLabel *owner_rtl = Object::cast_to<RichTextLabel>(ObjectDB::get_instance(owner));
if (owner_rtl) {
font->disconnect("changed", owner_rtl, "_invalidate_fonts");
}