aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2025-04-04 00:54:56 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2025-04-04 00:54:56 +0200
commitd93c52b32b48722b217a323194347e9667e4796b (patch)
tree7e723fa7fe57c0c855654e4ecb1a9391b6eb1c60
parenta4f4e4696d10bf96600b7d4dd212cdbd2f2fa263 (diff)
com_allobservers: simplified check (found by PVS-Studio)
-rw-r--r--FICS/obsproc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/FICS/obsproc.c b/FICS/obsproc.c
index 966e30e..56de00e 100644
--- a/FICS/obsproc.c
+++ b/FICS/obsproc.c
@@ -380,9 +380,8 @@ com_allobservers(int p, param_list param)
start = 0;
end = g_num;
} else if ((obgame >= g_num) ||
- ((obgame < g_num) &&
- ((garray[obgame].status != GAME_ACTIVE) &&
- (garray[obgame].status != GAME_EXAMINE)))) {
+ (garray[obgame].status != GAME_ACTIVE &&
+ garray[obgame].status != GAME_EXAMINE)) {
pprintf(p, "There is no such game.\n");
return COM_OK;
} else {