just memset the hashtable

This commit is contained in:
Alug committed 2025-05-22 02:01:39 +02:00
1 parent e1135f230e
commit 861767b01c
1 file changed
+1 -7
+1 -7
View File
@@ -35,13 +35,7 @@ mobjnum_linkedList mobjnum_Hashtable[HT_NUMLISTS]; //dumb and idiotic, there are
void mobjnum_ht_linkedList_Init(void)
{
mobjnum_ht_linkedList_Wipe();
for (UINT8 i = 0; i < HT_NUMLISTS; i++)
{
mobjnum_Hashtable[i].thinker = NULL;
mobjnum_Hashtable[i].prev = NULL;
mobjnum_Hashtable[i].next = NULL;
}
memset(mobjnum_Hashtable, 0, sizeof(mobjnum_Hashtable));
}
/** Adds a thinker's address, determines in which list to add automatically