aboutsummaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-07-01 17:27:49 +0200
committerHampusM <hampus@hampusmat.com>2022-07-01 17:27:49 +0200
commit578cf43e9c8384aab463aa2a33c5be00e46dc999 (patch)
tree927262a92b7ff0365463327130de78722578aa03 /src/game
parentae15df6689b1245200f8a9eb074c59a200561e49 (diff)
refactor: matrix add get_size method
Diffstat (limited to 'src/game')
-rw-r--r--src/game/cell_helper_impl.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/cell_helper_impl.hpp b/src/game/cell_helper_impl.hpp
index e2010fa..2a42f6c 100644
--- a/src/game/cell_helper_impl.hpp
+++ b/src/game/cell_helper_impl.hpp
@@ -92,8 +92,7 @@ auto CellHelper<MatrixElement>::_get_valid_pos_neighbours(
position + Vector2::down() + Vector2::left(),
position + Vector2::down() + Vector2::right()};
- const auto matrix_size =
- Bounds({.width = _matrix->get_column_cnt(), .height = _matrix->get_row_cnt()});
+ const auto matrix_size = _matrix->get_size();
return neighbours |
ranges::views::filter(