summaryrefslogtreecommitdiffstats
path: root/modules/mono/glue/base_object_glue.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-02-18 11:02:46 +0100
committerRémi Verschelde <rverschelde@gmail.com>2020-02-18 11:36:48 +0100
commit702976cd7a2dd9618d7f6ce1e53dd64f69c0e5dd (patch)
tree88c24d9a3be429a13d1d4475970447fd95ce6079 /modules/mono/glue/base_object_glue.cpp
parenta16be762ed8e241e16b176257d8f3ba95d1602fb (diff)
downloadredot-engine-702976cd7a2dd9618d7f6ce1e53dd64f69c0e5dd.tar.gz
Mono: Fix build after ObjectID and Texture2D changes
Diffstat (limited to 'modules/mono/glue/base_object_glue.cpp')
-rw-r--r--modules/mono/glue/base_object_glue.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/mono/glue/base_object_glue.cpp b/modules/mono/glue/base_object_glue.cpp
index 02246b2f2f..8dfb5b7147 100644
--- a/modules/mono/glue/base_object_glue.cpp
+++ b/modules/mono/glue/base_object_glue.cpp
@@ -224,14 +224,9 @@ MonoString *godot_icall_Object_ToString(Object *p_ptr) {
#ifdef DEBUG_ENABLED
// Cannot happen in C#; would get an ObjectDisposedException instead.
CRASH_COND(p_ptr == NULL);
-
- if (ScriptDebugger::get_singleton() && !Object::cast_to<Reference>(p_ptr)) { // Only if debugging!
- // Cannot happen either in C#; the handle is nullified when the object is destroyed
- CRASH_COND(!ObjectDB::instance_validate(p_ptr));
- }
#endif
- String result = "[" + p_ptr->get_class() + ":" + itos(p_ptr->get_instance_id()) + "]";
+ String result = p_ptr->to_string();
return GDMonoMarshal::mono_string_from_godot(result);
}