grass? testing
This commit is contained in:
@@ -101,6 +101,10 @@ impl BrickBuffer {
|
||||
);
|
||||
}
|
||||
|
||||
/*
|
||||
* Get id of next free brick
|
||||
* Later: reusing old bricks
|
||||
*/
|
||||
pub fn next_brick(&mut self) -> usize {
|
||||
if self.free_brick >= self.bricks.len() {
|
||||
panic!("No more free bricks! we should consider reusing bricks...");
|
||||
|
||||
Reference in New Issue
Block a user