correctly initialise before iteration

This commit is contained in:
Corwin 2023-04-03 12:06:51 +01:00
parent e6937bbb61
commit 63e87b046b
No known key found for this signature in database

View file

@ -82,9 +82,10 @@ impl Drop for OAMIterator<'_> {
impl UnmanagedOAM<'_> {
pub fn iter(&mut self) -> OAMIterator<'_> {
self.up_to.set(-1);
OAMIterator {
index: 0,
up_to: &mut self.up_to,
up_to: &self.up_to,
}
}