mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +00:00
Fixup casting for cherry picked #105266
This commit is contained in:
parent
bdb25bd710
commit
fc8433f3e3
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue