diff --git a/quakespasm/Quake/gl_model.c b/quakespasm/Quake/gl_model.c index 3fce61b7..411acf87 100644 --- a/quakespasm/Quake/gl_model.c +++ b/quakespasm/Quake/gl_model.c @@ -277,7 +277,7 @@ model_t *Mod_LoadModel (model_t *mod, qboolean crash) // // load the file // - buf = COM_LoadStackFile (mod->name, stackbuf, sizeof(stackbuf), NULL); + buf = COM_LoadStackFile (mod->name, stackbuf, sizeof(stackbuf), & mod->path_id); if (!buf) { if (crash) diff --git a/quakespasm/Quake/gl_model.h b/quakespasm/Quake/gl_model.h index c299cdbd..b395fc1f 100644 --- a/quakespasm/Quake/gl_model.h +++ b/quakespasm/Quake/gl_model.h @@ -364,6 +364,8 @@ typedef enum {mod_brush, mod_sprite, mod_alias} modtype_t; typedef struct model_s { char name[MAX_QPATH]; + unsigned int path_id; // path id of the game directory + // that this model came from qboolean needload; // bmodels and sprites don't cache normally modtype_t type;