Add an assertion

This commit is contained in:
Olivier Teulière 2012-10-05 10:28:54 +02:00
parent bcc2aedbff
commit 38d7093341

View file

@ -309,6 +309,8 @@ int FreeGame::pass(const wstring &iToChange)
if (res != 0)
return res;
ASSERT(player.isHuman(), "AI tried to pass using the wrong method");
Move move(iToChange);
// End the player's turn
recordPlayerMove(move, player);