diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-05-04 18:30:57 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-05-04 18:30:57 -0300 |
commit | 2d396fb71070f282b6858cb77efac1c948b6b4a9 (patch) | |
tree | f4328a7d6e65dcdf0ef6ccfc6ec783c2bd783db4 /core/method_bind.h | |
parent | 6f8bd899311d459b9e391b4acf72ccfa5cc1d806 (diff) | |
download | redot-engine-2d396fb71070f282b6858cb77efac1c948b6b4a9.tar.gz |
-More strict argument type-checking, will make many bugs visible, fixes #1809
-added NOTIFICATION_INSTANCED
Diffstat (limited to 'core/method_bind.h')
-rw-r--r-- | core/method_bind.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<m_enum> {\ #define CHECK_ARG(m_arg)\ if ((m_arg-1)<p_arg_count) {\ Variant::Type argtype=get_argument_type(m_arg-1);\ - if (!Variant::can_convert(p_args[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;\ |