forked from Maxluli/RustyPropagation
Use new() impl for humans
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ impl Population{
|
||||
let mut the_humans: Vec<Human> = Vec::with_capacity((width*height) as usize);
|
||||
for x in 0..width{
|
||||
for y in 0..height{
|
||||
the_humans.push(Human{present_state: State::Normal, x: x, y: y});
|
||||
the_humans.push(Human::new(x, y));
|
||||
}
|
||||
}
|
||||
Self{
|
||||
|
||||
Reference in New Issue
Block a user