diff --git a/src/perfect/millAI.cpp b/src/perfect/millAI.cpp index 117cf429..17619c2d 100644 --- a/src/perfect/millAI.cpp +++ b/src/perfect/millAI.cpp @@ -228,8 +228,12 @@ void fieldStruct::createBoard() //----------------------------------------------------------------------------- void fieldStruct::deleteBoard() { - SAFE_DELETE(curPlayer); - SAFE_DELETE(oppPlayer); + try { + SAFE_DELETE(curPlayer); + SAFE_DELETE(oppPlayer); + } catch (const char *msg) { + cerr << msg << endl; + } } //-----------------------------------------------------------------------------