Skip to content

Commit

Permalink
Handle the issue another way
Browse files Browse the repository at this point in the history
  • Loading branch information
Olek47 authored and StackDoubleFlow committed Jun 23, 2024
1 parent 72d4227 commit 1d5817b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/core/src/plot/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl Plot {

let idx = if args.len() == 2 {
match args[1].parse::<usize>() {
Ok(idx) => idx.checked_sub(1).unwrap_or(usize::MAX),
Ok(idx) => idx.wrapping_sub(1),
Err(_) => {
self.players[player].send_error_message("Unable to parse index");
return;
Expand Down

0 comments on commit 1d5817b

Please sign in to comment.