OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56b5697
)
[Fix] #37353 リファクタリング時にエンバグした get_rnd_line() の分岐処理を修正. / Fix a conditional branch...
author
deskull
<deskull@users.sourceforge.jp>
Thu, 26 Mar 2020 17:26:58 +0000
(
02:26
+0900)
committer
deskull
<deskull@users.sourceforge.jp>
Thu, 26 Mar 2020 17:26:58 +0000
(
02:26
+0900)
src/files.c
patch
|
blob
|
history
diff --git
a/src/files.c
b/src/files.c
index
79ef5ff
..
64a5e9a
100644
(file)
--- 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;