perfect: Add try...cache to deleteBoard()
This commit is contained in:
parent
41b12606ce
commit
0eaf8d5134
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue