summaryrefslogtreecommitdiff
path: root/Board.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Board.cpp')
-rw-r--r--Board.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Board.cpp b/Board.cpp
index 39caacf..f6eb593 100644
--- a/Board.cpp
+++ b/Board.cpp
@@ -29,8 +29,8 @@ Board:: Board(int width, int height, int minecount)
{
for (int y = 0; y < width; y++)
{
- std::shared_ptr<Tile> t(new Tile(x, y));
- tiles.push_back(t);
+ std::unique_ptr<Tile> t(new Tile(x, y));
+ tiles.push_back(std::move(t));
}
}
generate_mines();