diff options
| author | Ignacio Etcheverry <neikeq@users.noreply.github.com> | 2019-02-03 07:36:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-03 07:36:33 +0100 |
| commit | 919fa75803177d0dc8f03c16b6be1360140145e1 (patch) | |
| tree | 51ea7ff251f7ca76cfbf9946f0c6a41efb9584f0 /core | |
| parent | 248dbb251722432502e579a3ad6c4b5ed96af76f (diff) | |
| parent | 3233083f63dc668b8dd21290d25a511212f114d8 (diff) | |
Merge pull request #25574 from neikeq/ss
Mono: Lifetime fixes for CSharpInstance and instance binding data
Diffstat (limited to 'core')
| -rw-r--r-- | core/object.cpp | 5 | ||||
| -rw-r--r-- | core/object.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/core/object.cpp b/core/object.cpp index 682586a7ab..05e661baab 100644 --- a/core/object.cpp +++ b/core/object.cpp @@ -1924,6 +1924,11 @@ void *Object::get_script_instance_binding(int p_script_language_index) { return _script_instance_bindings[p_script_language_index]; } +bool Object::has_script_instance_binding(int p_script_language_index) { + + return _script_instance_bindings[p_script_language_index] != NULL; +} + Object::Object() { _class_ptr = NULL; diff --git a/core/object.h b/core/object.h index a5bb6dea5d..5bfef8a439 100644 --- a/core/object.h +++ b/core/object.h @@ -729,6 +729,7 @@ public: //used by script languages to store binding data void *get_script_instance_binding(int p_script_language_index); + bool has_script_instance_binding(int p_script_language_index); void clear_internal_resource_paths(); |