You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Fix index check in MethodBind::get_argument_type
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user