You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Merge pull request #36481 from nekomatata/fix-crash-connect-callable
Fixed crash when connecting a signal in GDScript
This commit is contained in:
@@ -1549,6 +1549,8 @@ Variant::operator uint64_t() const {
|
||||
Variant::operator ObjectID() const {
|
||||
if (type == INT) {
|
||||
return ObjectID(_data._int);
|
||||
} else if (type == OBJECT) {
|
||||
return _get_obj().id;
|
||||
} else {
|
||||
return ObjectID();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user