mirror of https://github.com/godotengine/godot
Fix index check in MethodBind::get_argument_type
This commit is contained in:
parent
0726d3c7d5
commit
6b225ebe24
|
|
@ -90,7 +90,7 @@ public:
|
|||
}
|
||||
|
||||
_FORCE_INLINE_ Variant::Type get_argument_type(int p_argument) const {
|
||||
ERR_FAIL_COND_V(p_argument < -1 || p_argument > argument_count, Variant::NIL);
|
||||
ERR_FAIL_COND_V(p_argument < -1 || p_argument >= argument_count, Variant::NIL);
|
||||
return argument_types[p_argument + 1];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue