fix(hash): Fix initialization of HashTableIteratorClass and make it work with an empty HashTableClass - #3284
Conversation
PR Summary by QodoInitialize HashTableIteratorClass on construction
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1. Empty hash tables can crash during iterator construction
|
|
| Filename | Overview |
|---|---|
| Core/Libraries/Source/WWVegas/WWLib/hash.cpp | Adjusts iterator initialization and bucket advancement to handle empty tables and traverse all buckets safely. |
| Core/Libraries/Source/WWVegas/WWLib/hash.h | Initializes iterator state by calling First() from the constructor. |
Reviews (2): Last reviewed commit: "fix(hash): Fix initialization of HashTab..." | Re-trigger Greptile
…ork with an empty HashTableClass
57f89ff to
3d9916c
Compare
This change fixes the missing initialization in the
HashTableIteratorClassconstructor.This is consistent with other iterator constructors:
This fix looks to be inconsequential for the game runtime.