diff options
author | HampusM <hampus@hampusmat.com> | 2022-07-01 17:27:49 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-07-01 17:27:49 +0200 |
commit | 578cf43e9c8384aab463aa2a33c5be00e46dc999 (patch) | |
tree | 927262a92b7ff0365463327130de78722578aa03 /src/game/cell_helper_impl.hpp | |
parent | ae15df6689b1245200f8a9eb074c59a200561e49 (diff) |
refactor: matrix add get_size method
Diffstat (limited to 'src/game/cell_helper_impl.hpp')
-rw-r--r-- | src/game/cell_helper_impl.hpp | 3 |
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( |