summaryrefslogtreecommitdiff
path: root/modules/gdnative/nativescript/nativescript.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-02-08 11:09:43 +0100
committerGitHub <noreply@github.com>2022-02-08 11:09:43 +0100
commitf32c715fbc7c74798df838254185ef33864db031 (patch)
treec3e5786ac3f4e82ae3600895a3df3048a03e6d86 /modules/gdnative/nativescript/nativescript.cpp
parent7e308d5120f61bcb70eb0afdbac35511484324d8 (diff)
parent317cd0b19a284f9a7296fcb4e06d9b2362da8c85 (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.cpp2
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 = "";
}