Skip to content

Commit c4a37f2

Browse files
committed
Fix optional argument error reporting.
1 parent 16e5847 commit c4a37f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gdnative-core/src/export/method.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ impl<'a> Varargs<'a> {
278278
/// Returns the remaining arguments as a slice of `Variant`s.
279279
#[inline]
280280
pub fn as_slice(&self) -> &'a [&'a Variant] {
281-
self.args
281+
&self.args[self.idx..]
282282
}
283283

284284
/// Discard the rest of the arguments, and return an error if there is any.

0 commit comments

Comments
 (0)