diff --git a/src/main.rs b/src/main.rs index 6a8a098..5251ee4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,7 +35,8 @@ impl System for PlayerRenderer { for id in ctx.entities_with_component::() { let &mut Position(x, y) = ctx.entity_component::(id); let player = ctx.entity_component::(id); - let sprite = player.sprite.clone().unwrap(); + + let sprite = player.sprite.unwrap(); ctx.draw_sprite(&sprite, x, y)?; } Ok(())