aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/gamedb.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/gamedb.c')
-rw-r--r--FICS/gamedb.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/FICS/gamedb.c b/FICS/gamedb.c
index 1f4e577..ee71af4 100644
--- a/FICS/gamedb.c
+++ b/FICS/gamedb.c
@@ -1293,9 +1293,10 @@ ReadGameAttrs(FILE *fp, char *fname, int g)
warn("%s: failed to get version", __func__);
}
- if (version > 0)
- ReadV1GameFmt(&garray[g], fp, fname, version);
- else {
+ if (version > 0) {
+ if (ReadV1GameFmt(&garray[g], fp, fname, version) == -1)
+ return -1;
+ } else {
do {
if ((len = strlen(line)) <= 1) {
fgets(line, sizeof line, fp);