From 3a41ff521bd1e95a85bf93ac77d69108a1d9c0c5 Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Sun, 14 Jun 2020 21:57:47 +0930 Subject: work on getting new game working new games work only if the width and height are the same values --- Tile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Tile.h') diff --git a/Tile.h b/Tile.h index 371e121..d151ae7 100644 --- a/Tile.h +++ b/Tile.h @@ -44,7 +44,7 @@ class Tile void set_neighbor_mine_count(int count) { this->neighbor_mine_count = count; }; Tile *get_neighbor(int i); - Tile *neighbors[8]; // one day make private with getters/setters + Tile *neighbors[8] = {0}; // one day make private with getters/setters private: void set_flags(enum STATE flags) { this->flags = flags; }; int x; -- cgit v1.2.3