diff options
-rw-r--r-- | src/ch/epfl/xblast/Cell.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ch/epfl/xblast/Cell.java b/src/ch/epfl/xblast/Cell.java index d5b15e7..c5fbad8 100644 --- a/src/ch/epfl/xblast/Cell.java +++ b/src/ch/epfl/xblast/Cell.java | |||
@@ -146,7 +146,7 @@ public final class Cell { | |||
146 | * @return the index of the Cell | 146 | * @return the index of the Cell |
147 | */ | 147 | */ |
148 | public int rowMajorIndex() { | 148 | public int rowMajorIndex() { |
149 | return this.x * ROWS + this.y; | 149 | return this.y * COLUMNS + this.x; |
150 | } | 150 | } |
151 | 151 | ||
152 | /** | 152 | /** |