I still make off-by-one errors because I am a horrible programmer. :D

git-svn-id: https://svn.eduke32.com/eduke32@5584 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2016-01-24 19:44:49 +00:00
parent f146abe68e
commit e4e2954eea

View file

@ -1267,7 +1267,7 @@ void C_InitHashes()
{ {
uint32_t i; uint32_t i;
for (i=0; i < ARRAY_SIZE(tables)-1; i++) for (i=0; i < ARRAY_SIZE(tables); i++)
hash_init(tables[i]); hash_init(tables[i]);
inithashnames(); inithashnames();
@ -6344,7 +6344,7 @@ void C_Compile(const char *filenam)
initprintf("Script compiled in %dms, %ld bytes%s\n", getticks() - startcompiletime, initprintf("Script compiled in %dms, %ld bytes%s\n", getticks() - startcompiletime,
(unsigned long)(g_scriptPtr-script), C_ScriptVersionString(g_scriptVersion)); (unsigned long)(g_scriptPtr-script), C_ScriptVersionString(g_scriptVersion));
for (i=0; (unsigned)i < ARRAY_SIZE(tables_free)-1; i++) for (i=0; (unsigned)i < ARRAY_SIZE(tables_free); i++)
hash_free(tables_free[i]); hash_free(tables_free[i]);
freehashnames(); freehashnames();