mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 10:32:29 +00:00
fix(hash): correct clearing slot list
This commit is contained in:
parent
b1a5b24f6d
commit
ca7b8c816f
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ void TSHashTable<T, TKey>::InternalClear(int32_t warn) {
|
|||
for (int32_t i = 0; i < this->m_slotlistarray.Count(); 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) {
|
||||
slotList.UnlinkNode(node);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue