diff options
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/movecheck.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/FICS/movecheck.c b/FICS/movecheck.c index a0c9d30..d87b94e 100644 --- a/FICS/movecheck.c +++ b/FICS/movecheck.c @@ -967,8 +967,10 @@ has_legal_move(game_state_t *gs) &numpossible); break; } - if (numpossible >= 500) + if (numpossible >= 500) { fprintf(stderr, "FICS: Possible move overrun\n"); + return 0; + } for (i = 0; i < numpossible; i++) { if (legal_andcheck_move(gs, f, r, possiblef[i], possibler[i])) |