Skip to content

Commit

Permalink
Copy head position instead of cloning it
Browse files Browse the repository at this point in the history
  • Loading branch information
tehlers committed Nov 18, 2023
1 parent 2220e6a commit 9cadce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/systems/control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ pub fn eat(

show_message_writer.send(ShowMessage {
text: new_segments.to_string(),
position: head_pos.clone(),
position: *head_pos,
});

spawn_consumables_writer.send(SpawnConsumables {
Expand Down

0 comments on commit 9cadce6

Please sign in to comment.