fix(hash): correct clearing slot list

This commit is contained in:
fallenoak 2021-01-03 00:32:51 -06:00
parent b1a5b24f6d
commit ca7b8c816f
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D

View file

@ -101,7 +101,7 @@ void TSHashTable<T, TKey>::InternalClear(int32_t warn) {
for (int32_t i = 0; i < this->m_slotlistarray.Count(); i++) { for (int32_t i = 0; i < this->m_slotlistarray.Count(); i++) {
auto& slotList = this->m_slotlistarray[i]; auto& slotList = this->m_slotlistarray[i];
for (auto node = slotList.Head(); node; node = slotList.Link(node)->Next()) { for (auto node = slotList.Head(); node; node = slotList.Head()) {
if (warn) { if (warn) {
slotList.UnlinkNode(node); slotList.UnlinkNode(node);
} else { } else {