fix crash on digit tile
This commit is contained in:
parent
cf920d7a63
commit
144a49e7c6
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ impl Machine {
|
|||
Tile::Digit(d) => {
|
||||
let new_val = value
|
||||
.wrapping_mul(10)
|
||||
.wrapping_add((*d - b'0') as MarbleValue);
|
||||
.wrapping_add(*d as MarbleValue);
|
||||
*target = Tile::Marble {
|
||||
value: new_val,
|
||||
dir,
|
||||
|
|
Loading…
Reference in a new issue