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:
parent
d8b843c3b5
commit
0a326e1bc8
1 changed files with 6 additions and 0 deletions
|
@ -1347,6 +1347,12 @@ cache_system_t *cache_head;
|
||||||
void Cache_Free (cache_user_t *c)
|
void Cache_Free (cache_user_t *c)
|
||||||
{
|
{
|
||||||
cache_system_t *cs;
|
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 *)c->data)-1;
|
||||||
cs = (cache_system_t*)((char*)cs - CACHEDEBUG);
|
cs = (cache_system_t*)((char*)cs - CACHEDEBUG);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue