diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-08 11:09:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-08 11:09:43 +0100 |
commit | f32c715fbc7c74798df838254185ef33864db031 (patch) | |
tree | c3e5786ac3f4e82ae3600895a3df3048a03e6d86 /modules/gdnative/nativescript/nativescript.cpp | |
parent | 7e308d5120f61bcb70eb0afdbac35511484324d8 (diff) | |
parent | 317cd0b19a284f9a7296fcb4e06d9b2362da8c85 (diff) |
Merge pull request #57720 from akien-mga/prefer-cast-to-get_class-string-compare
Diffstat (limited to 'modules/gdnative/nativescript/nativescript.cpp')
-rw-r--r-- | modules/gdnative/nativescript/nativescript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdnative/nativescript/nativescript.cpp b/modules/gdnative/nativescript/nativescript.cpp index be304a43f0..5d5414c694 100644 --- a/modules/gdnative/nativescript/nativescript.cpp +++ b/modules/gdnative/nativescript/nativescript.cpp @@ -766,7 +766,7 @@ Variant NativeScriptInstance::call(const StringName &p_method, const Variant **p void NativeScriptInstance::notification(int p_notification) { #ifdef DEBUG_ENABLED if (p_notification == MainLoop::NOTIFICATION_CRASH) { - if (current_method_call != StringName("")) { + if (current_method_call != StringName()) { ERR_PRINT("NativeScriptInstance detected crash on method: " + current_method_call); current_method_call = ""; } |