diff --git a/source/code/BlockGame.cpp b/source/code/BlockGame.cpp index 9dc79f2..a39c87c 100644 --- a/source/code/BlockGame.cpp +++ b/source/code/BlockGame.cpp @@ -127,10 +127,6 @@ BlockGame::BlockGame() { lastCounter = -1; //To prevent the final chunk to be played when stating the program } //Constructor -//Deconstructor, never really used... game used to crash when called, cause of the way sBoard was created -//It should work now and can be used if we want to assign more players in network games that we need to free later -BlockGame::~BlockGame() { -} void BlockGame::setGameSpeed(int globalSpeedLevel) { switch (globalSpeedLevel) { diff --git a/source/code/BlockGame.hpp b/source/code/BlockGame.hpp index 1693dd9..6a04847 100644 --- a/source/code/BlockGame.hpp +++ b/source/code/BlockGame.hpp @@ -159,7 +159,7 @@ public: public: BlockGame(); - virtual ~BlockGame(); + virtual ~BlockGame() = default; int getAIlevel() const;