aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-14 22:31:27 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-14 22:31:27 +0100
commit5f96bd7a8069db4321ded44f5ab8e2399dd17f6e (patch)
tree7ed1be2e55b1ea7777bc6d1729b3fcbc6f757e0e /FICS
parentbc2d7526523c0aaed9552890417ce405baf25262 (diff)
Fixed compiler warning
Diffstat (limited to 'FICS')
-rw-r--r--FICS/movecheck.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/FICS/movecheck.c b/FICS/movecheck.c
index 4d0ecd0..fa2436d 100644
--- a/FICS/movecheck.c
+++ b/FICS/movecheck.c
@@ -760,7 +760,7 @@ has_legal_move(game_state_t *gs)
{
int f, r;
int i;
- int kf, kr;
+ int kf = 0, kr = -1;
int kf_and_kr_set = 0;
int numpossible = 0;
int possiblef[500];
@@ -806,7 +806,7 @@ has_legal_move(game_state_t *gs)
}
}
- if (!kf_and_kr_set) {
+ if (!kf_and_kr_set && kf == 0 && kr == -1) {
fprintf(stderr, "FICS: %s: 'kf_and_kr_set' is 0\n", __func__);
return 0;
}