1
0
Fork 0
forked from fte/fteqw

Don't Crash!!! (This isn't a real fix)

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2008 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-02-22 23:46:22 +00:00
parent d8b843c3b5
commit 0a326e1bc8

View file

@ -1347,6 +1347,12 @@ cache_system_t *cache_head;
void Cache_Free (cache_user_t *c)
{
cache_system_t *cs;
if (c->data == NULL)
{
cache_head = NULL; //this is evil and should never happen
Host_EndGame("Cache was already free\n");
return;
}
cs = ((cache_system_t *)c->data)-1;
cs = (cache_system_t*)((char*)cs - CACHEDEBUG);