From 086256431a958cb843e5d009749edb943dc8666f Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Fri, 8 Oct 2021 12:36:06 +0200 Subject: [Net] Add type check to GDScriptRPCCallable. It will print an error when using an RPC defined on an object which does not extend Node. --- modules/gdscript/gdscript_rpc_callable.cpp | 20 +++++++++++++------- modules/gdscript/gdscript_rpc_callable.h | 3 ++- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/modules/gdscript/gdscript_rpc_callable.cpp b/modules/gdscript/gdscript_rpc_callable.cpp index dd3704c812..07e5ed4171 100644 --- a/modules/gdscript/gdscript_rpc_callable.cpp +++ b/modules/gdscript/gdscript_rpc_callable.cpp @@ -46,8 +46,8 @@ uint32_t GDScriptRPCCallable::hash() const { } String GDScriptRPCCallable::get_as_text() const { - String class_name = node->get_class(); - Ref