Closed va5ja closed 11 years ago
There's a problem with mdl_load() function. The code should rewind the file first like:
mdl_load()
if (fscanf(file, "#mdl#%d#%"SCNu64"\n", &type, &nact) == 2) { mdl->type = type; } else { rewind(file); if (fscanf(file, "#mdl#%"SCNu64"\n", &nact) == 1) { mdl->type = 0; } else { fatal(err); } }
Thank you for reporting these two problems.
There's a problem with
mdl_load()
function. The code should rewind the file first like: