}
}
if (mod->loaded)
- return mod; // already loaded
+ {
+ // already loaded
+ if (buf)
+ Mem_Free(buf);
+ return mod;
+ }
Con_DPrintf("loading model %s\n", mod->name);
// LordHavoc: unload the existing model in this slot (if there is one)
return mod;
}
-/*
-===================
-Mod_ClearAll
-===================
-*/
-void Mod_ClearAll(void)
-{
-}
-
void Mod_ClearUsed(void)
{
#if 0