diff options
Diffstat (limited to 'src/game/cell_helper.hpp')
-rw-r--r-- | src/game/cell_helper.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/cell_helper.hpp b/src/game/cell_helper.hpp index ee5ab27..cf84a75 100644 --- a/src/game/cell_helper.hpp +++ b/src/game/cell_helper.hpp @@ -13,7 +13,7 @@ template <typename MatrixElement> class CellHelper : public ICellHelper { public: - explicit CellHelper(const IMatrix<MatrixElement> &matrix) noexcept; + explicit CellHelper(std::shared_ptr<IMatrix<MatrixElement>> matrix) noexcept; [[nodiscard]] auto is_cell_dying(const Vector2 &cell_pos) const noexcept -> bool override; @@ -26,7 +26,7 @@ public: -> std::vector<Vector2> override; private: - const IMatrix<MatrixElement> &_matrix; + std::shared_ptr<IMatrix<MatrixElement>> _matrix; static auto _get_position_neighbours(const Vector2 &position) noexcept -> std::list<Vector2>; |