Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

model.c #3

Closed
va5ja opened this issue Apr 18, 2013 · 1 comment
Closed

model.c #3

va5ja opened this issue Apr 18, 2013 · 1 comment
Assignees
Labels

Comments

@va5ja
Copy link

va5ja commented Apr 18, 2013

There's a problem with mdl_load() function. The code should rewind the file first like:

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);
  }
}
@ghost ghost assigned Jekub Apr 29, 2013
@Jekub Jekub closed this as completed in b4b6525 Apr 29, 2013
@Jekub
Copy link
Owner

Jekub commented Apr 29, 2013

Thank you for reporting these two problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants