fix a bunch of the previous FIXMEs. needs a bit more work for win32

compiling
This commit is contained in:
Bill Currie 2003-07-08 22:39:45 +00:00
parent dddf045221
commit 4f66e1e9da
14 changed files with 209 additions and 217 deletions

View file

@ -50,7 +50,7 @@ static __attribute__ ((unused)) const char rcsid[] =
#include "compat.h"
model_t *loadmodel;
char loadname[32]; // for hunk tags
char *loadname; // for hunk tags
#define MAX_MOD_KNOWN 512
model_t mod_known[MAX_MOD_KNOWN];
@ -157,7 +157,9 @@ Mod_RealLoadModel (model_t *mod, qboolean crash, cache_allocator_t allocator)
}
// allocate a new model
QFS_FileBase (mod->name, loadname);
if (loadname)
free (loadname);
loadname = QFS_FileBase (mod->name);
loadmodel = mod;