You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Refactor some object type checking code with cast_to
Less stringly typed logic, and less String allocations and comparisons.
This commit is contained in:
@@ -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 = "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user