summaryrefslogtreecommitdiff
path: root/model/src
diff options
context:
space:
mode:
authorMike White <botahamec@outlook.com>2021-08-26 16:42:24 -0400
committerMike White <botahamec@outlook.com>2021-08-26 16:42:24 -0400
commit68014734561c3a8d8712916bdfa58b8347131501 (patch)
treeb5cc4760fcccedf63c0ac130074e22f55b2cf724 /model/src
parent174c3cc5bf97eda465d1f2d6211046abf167abd8 (diff)
Fixed bug
Diffstat (limited to 'model/src')
-rw-r--r--model/src/coordinates.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/model/src/coordinates.rs b/model/src/coordinates.rs
index 34dcdcf..a055f46 100644
--- a/model/src/coordinates.rs
+++ b/model/src/coordinates.rs
@@ -72,7 +72,7 @@ impl SquareCoordinate {
7 => 1,
_ => unreachable!(),
};
- let row_value = match self.file {
+ let row_value = match self.rank {
1 => 0,
3 => 8,
5 => 16,