git repos / blockattack-game

commit 87ac12e9

sago007 · 2016-04-09 18:47
87ac12e98708b90809c45c22431bf940c100d39e patch · browse files
parent 63763043173c71a865a31f8e60928f2f2d696c46

Replaced the destructor with the default implementation.

Changed files

M source/code/BlockGame.cpp before
M source/code/BlockGame.hpp before
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;