[Fix] Error on file not found in pack_openFromCache.

This commit is contained in:
Allanis 2014-04-27 16:15:55 +01:00
parent c7f9fd3a79
commit 96a38a1f60

View File

@ -216,11 +216,13 @@ Packfile_t* pack_openFromCache(Packcache_t* cache, const char* filename) {
file->end += file->start; file->end += file->start;
} }
break; return file;
} }
} }
return file; free(file);
WARN("File '%s' not found in packfile.", filename);
return NULL;
} }
/** /**