diff --git a/src/game.rs b/src/game.rs index e327ff5..8376d5c 100644 --- a/src/game.rs +++ b/src/game.rs @@ -243,7 +243,7 @@ impl Game { ); if index.is_some() { - return Ok(&self.sprites[index.unwrap()]) + Ok(&self.sprites[index.unwrap()]) } else { Err(SpriteNotFound) }