diff options
author | Danil Alexeev <danil@alexeev.xyz> | 2024-08-30 21:09:30 +0300 |
---|---|---|
committer | Danil Alexeev <danil@alexeev.xyz> | 2024-08-30 21:09:30 +0300 |
commit | 49bcdf78a7ce5009d6f6ebce6ead31c2aa7a55b9 (patch) | |
tree | 0204ed74b55b5271ed72b5079abea2e34c95fcfd /core/variant/variant.cpp | |
parent | a5830f6eb9fe25fbb7e58a723dbea8509aec8a85 (diff) | |
download | redot-engine-49bcdf78a7ce5009d6f6ebce6ead31c2aa7a55b9.tar.gz |
Core: Сheck `r_error` after calling `callp()`
Diffstat (limited to 'core/variant/variant.cpp')
-rw-r--r-- | core/variant/variant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant/variant.cpp b/core/variant/variant.cpp index 24b30112bd..186643b024 100644 --- a/core/variant/variant.cpp +++ b/core/variant/variant.cpp @@ -2113,7 +2113,7 @@ Variant::operator ::RID() const { } #endif Callable::CallError ce; - Variant ret = _get_obj().obj->callp(CoreStringName(get_rid), nullptr, 0, ce); + const Variant ret = _get_obj().obj->callp(CoreStringName(get_rid), nullptr, 0, ce); if (ce.error == Callable::CallError::CALL_OK && ret.get_type() == Variant::RID) { return ret; } |