diff options
Diffstat (limited to 'src/char/int_party.c')
-rw-r--r-- | src/char/int_party.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/char/int_party.c b/src/char/int_party.c index 2c18f29ab..6d2562668 100644 --- a/src/char/int_party.c +++ b/src/char/int_party.c @@ -183,7 +183,8 @@ int inter_party_init() { if ((fp = fopen(party_txt, "r")) == NULL) return 1; - while(fgets(line, sizeof(line) - 1, fp)) { + while(fgets(line, sizeof(line), fp)) + { j = 0; if (sscanf(line, "%d\t%%newid%%\n%n", &i, &j) == 1 && j > 0 && party_newid <= i) { party_newid = i; |