Fix silly cvar-related crash.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5819 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2021-04-19 18:25:11 +00:00
parent 36fb0bbe8e
commit aa5c71f839

View file

@ -70,7 +70,7 @@ void AHash_RemoveDataInsensitive(ahashtable_t *table, const char *name, void *da
b->numentries--; b->numentries--;
//shift everything down. //shift everything down.
if (b->numentries > i) if (b->numentries > i)
memmove(&b->entry[i], &b->entry[i+1], b->numentries-1); memmove(&b->entry[i], &b->entry[i+1], sizeof(*b->entry)*(b->numentries-i));
break; break;
} }
} }