You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fixup casting for cherry picked #105266
This commit is contained in:
@@ -169,7 +169,7 @@ private:
|
|||||||
ItemFont() { type = ITEM_FONT; }
|
ItemFont() { type = ITEM_FONT; }
|
||||||
~ItemFont() {
|
~ItemFont() {
|
||||||
if (font.is_valid()) {
|
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) {
|
if (owner_rtl) {
|
||||||
font->disconnect("changed", owner_rtl, "_invalidate_fonts");
|
font->disconnect("changed", owner_rtl, "_invalidate_fonts");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user