• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revisione93655b7f3649041b426a64b00f0b91f29cff9d8 (tree)
Zeit2020-03-27 02:26:58
Autordeskull <deskull@user...>
Commiterdeskull

Log Message

[Fix] #37353 リファクタリング時にエンバグした get_rnd_line() の分岐処理を修正. / Fix a conditional branch bug that was added refactoring of get_rnd_line().

Ändern Zusammenfassung

Diff

--- a/src/files.c
+++ b/src/files.c
@@ -379,10 +379,12 @@ errr get_rnd_line(concptr file_name, int entry, char *output)
379379 {
380380 if (test == entry) break;
381381 }
382-
383- msg_format("Error in line %d of %s!", line_num, file_name);
384- my_fclose(fp);
385- return -1;
382+ else
383+ {
384+ msg_format("Error in line %d of %s!", line_num, file_name);
385+ my_fclose(fp);
386+ return -1;
387+ }
386388 }
387389
388390 int counter;
Show on old repository browser