diff --git a/projects/mtg/src/TestSuiteAI.cpp b/projects/mtg/src/TestSuiteAI.cpp index f4264fd7f..07ecc6dad 100644 --- a/projects/mtg/src/TestSuiteAI.cpp +++ b/projects/mtg/src/TestSuiteAI.cpp @@ -18,6 +18,7 @@ using std::string; TestSuiteAI::TestSuiteAI(GameObserver *observer, TestSuite * _suite, int playerId) : AIPlayerBaka(observer, "testsuite", "testsuite", "baka.jpg", NULL) { + SAFE_DELETE(game); //game might have been set in the parent with default values game = _suite->buildDeck(this, playerId); game->setOwner(this);