library: Fix return code of function

Return the right code when there is an error.
This commit is contained in:
Antonio Niño Díaz 2022-11-09 01:48:49 +00:00
parent bc2a564f77
commit 72dca60154

View File

@ -444,7 +444,7 @@ int NE_ModelLoadDSMFAT(NE_Model *model, const char *path)
void *pointer = NE_FATLoadData(path);
if (pointer == NULL)
return 1;
return 0;
if (model->free_mesh)
free((void *)model->meshdata);