Skip to content

Commit

Permalink
Fix issue #72
Browse files Browse the repository at this point in the history
  • Loading branch information
Olek47 authored and StackDoubleFlow committed Jun 23, 2024
1 parent bef7065 commit 72d4227
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 - 1,
Ok(idx) => idx.checked_sub(1).unwrap_or(usize::MAX),
Err(_) => {
self.players[player].send_error_message("Unable to parse index");
return;
Expand Down

0 comments on commit 72d4227

Please sign in to comment.