mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
fix 'attempted to subtract with overflow' for State::inactives (#1668)
This commit is contained in:
parent
6a4051be3a
commit
ed36c21e7e
1 changed files with 1 additions and 1 deletions
|
@ -378,7 +378,7 @@ where
|
|||
}
|
||||
|
||||
pub fn inactives(&self) -> &[T] {
|
||||
&self.stack[0..self.stack.len() - 2]
|
||||
self.stack.split_last().map(|(_, rest)| rest).unwrap()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue