From 2d396fb71070f282b6858cb77efac1c948b6b4a9 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Mon, 4 May 2015 18:30:57 -0300 Subject: -More strict argument type-checking, will make many bugs visible, fixes #1809 -added NOTIFICATION_INSTANCED --- core/method_bind.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/method_bind.h') diff --git a/core/method_bind.h b/core/method_bind.h index d32050cc5d..49c64bd11c 100644 --- a/core/method_bind.h +++ b/core/method_bind.h @@ -98,7 +98,7 @@ struct VariantCaster {\ #define CHECK_ARG(m_arg)\ if ((m_arg-1)get_type(),argtype)) {\ + if (!Variant::can_convert_strict(p_args[m_arg-1]->get_type(),argtype)) {\ r_error.error=Variant::CallError::CALL_ERROR_INVALID_ARGUMENT;\ r_error.argument=m_arg-1;\ r_error.expected=argtype;\ -- cgit v1.2.3