diff options
Diffstat (limited to 'src/character.rs')
-rw-r--r-- | src/character.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/character.rs b/src/character.rs index 0d19193..6a71d4c 100644 --- a/src/character.rs +++ b/src/character.rs @@ -109,7 +109,6 @@ impl Character { fn move_along_path(&mut self, free_spaces : Vec<(Location, usize)>) { let mut moved = false; match self.path { - None => (), Some(ref mut calculated_path) => { if calculated_path.len() > 0 { let next_location = calculated_path.pop().unwrap(); @@ -125,6 +124,7 @@ impl Character { self.order = Orders::Wait as u8; } } + _ => (), } if !moved { self.path = None; |