- Minifix readregion

This commit is contained in:
Christian Schlittchen 2002-03-03 16:22:24 +00:00
parent 21920015a3
commit 135d3ac079
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ log_read(const char * filename)
while (*fp) fp=&(*fp)->next; while (*fp) fp=&(*fp)->next;
fscanf(log, "LOGVERSION %d\n", &global.data_version); fscanf(log, "LOGVERSION %d\n", &global.data_version);
while (!feof(log)) { while (!feof(log)) {
fscanf(log, "%s", buf); if(fscanf(log, "%s", buf) == EOF) break;
if (strcmp(buf, "UNIT")==0) { if (strcmp(buf, "UNIT")==0) {
int x, y; int x, y;
unit * u; unit * u;