summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/grfio.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/common/grfio.c b/src/common/grfio.c
index 57e942892..88642cfe5 100644
--- a/src/common/grfio.c
+++ b/src/common/grfio.c
@@ -825,11 +825,15 @@ void grfio_init(const char* fname)
continue; // skip unrecognized lines
// Entry table reading
- if( strcmp(w1, "grf") == 0 ) { // GRF file
+ if( strcmp(w1, "grf") == 0 ) // GRF file
+ {
if( grfio_add(w2) == 0 )
++grf_num;
- } else if( strcmp(w1,"data_dir") == 0 ) // Data directory
+ }
+ else if( strcmp(w1,"data_dir") == 0 ) // Data directory
+ {
safestrncpy(data_dir, w2, sizeof(data_dir));
+ }
}
fclose(data_conf);