fix some other issues that exhibited themselves in aqueous.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4835 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2015-02-03 09:44:27 +00:00
parent 670a5d5992
commit 23971df104
8 changed files with 59 additions and 32 deletions

View file

@ -2234,6 +2234,12 @@ void Terr_FreeModel(model_t *mod)
if (hm)
{
Terr_PurgeTerrainModel(mod, false, false);
while(hm->entities)
{
struct hmentity_s *n = hm->entities->next;
Z_Free(hm->entities);
hm->entities = n;
}
Z_Free(hm);
mod->terrain = NULL;
}