diff options
| author | Juan Linietsky | 2015-05-04 18:30:57 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-05-04 18:30:57 -0300 |
| commit | 2d396fb71070f282b6858cb77efac1c948b6b4a9 (patch) | |
| tree | f4328a7d6e65dcdf0ef6ccfc6ec783c2bd783db4 /core/method_bind.h | |
| parent | 6f8bd899311d459b9e391b4acf72ccfa5cc1d806 (diff) | |
| download | godot-2d396fb71070f282b6858cb77efac1c948b6b4a9.tar.gz godot-2d396fb71070f282b6858cb77efac1c948b6b4a9.tar.zst godot-2d396fb71070f282b6858cb77efac1c948b6b4a9.zip | |
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 d32050cc5..49c64bd11 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;\ |
