mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-22 03:51:32 +00:00
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:
parent
36fb0bbe8e
commit
aa5c71f839
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ void AHash_RemoveDataInsensitive(ahashtable_t *table, const char *name, void *da
|
|||
b->numentries--;
|
||||
//shift everything down.
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue