From: deskull Date: Thu, 26 Mar 2020 17:26:58 +0000 (+0900) Subject: [Fix] #37353 リファクタリング時にエンバグした get_rnd_line() の分岐処理を修正. / Fix a conditional branch... X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e93655b7f3649041b426a64b00f0b91f29cff9d8;p=hengband%2Fhengband.git [Fix] #37353 リファクタリング時にエンバグした get_rnd_line() の分岐処理を修正. / Fix a conditional branch bug that was added refactoring of get_rnd_line(). --- diff --git a/src/files.c b/src/files.c index 79ef5ff65..64a5e9aae 100644 --- a/src/files.c +++ b/src/files.c @@ -379,10 +379,12 @@ errr get_rnd_line(concptr file_name, int entry, char *output) { if (test == entry) break; } - - msg_format("Error in line %d of %s!", line_num, file_name); - my_fclose(fp); - return -1; + else + { + msg_format("Error in line %d of %s!", line_num, file_name); + my_fclose(fp); + return -1; + } } int counter;