mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2025-01-18 10:26:15 +01:00
Add an assertion
This commit is contained in:
parent
bcc2aedbff
commit
38d7093341
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue