mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
correctly initialise before iteration
This commit is contained in:
parent
e6937bbb61
commit
63e87b046b
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue