mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-29 16:01:44 +00:00
fix a bunch of the previous FIXMEs. needs a bit more work for win32
compiling
This commit is contained in:
parent
dddf045221
commit
4f66e1e9da
14 changed files with 209 additions and 217 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue