Skip to content

Commit

Permalink
go back to <=
Browse files Browse the repository at this point in the history
  • Loading branch information
zwazel committed Nov 15, 2023
1 parent 478e105 commit b88e0c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bevy_script_api/src/common/std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ impl<T: FromReflect> Iterator for ScriptVecIterator<T> {
type Item = ScriptRef;

fn next(&mut self) -> Option<Self::Item> {
let nxt = (self.current < self.len).then(|| self.base.index(self.current));
let nxt = (self.current <= self.len).then(|| self.base.index(self.current));
self.current += 1;
nxt
}
Expand Down

0 comments on commit b88e0c3

Please sign in to comment.