Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add empty check and iterator validation in ContainerIterator::ad…
…vance() Description: This PR adds an !over.empty() check in ContainerIterator::advance() to ensure the iterator does not access an empty queue or go out of bounds during container iteration. Key Changes: Added validation to prevent accessing over.front() when the over queue is empty. Ensured the iterator cur is correctly repositioned to the next container, preventing out-of-bounds access to itemlist. This improves the stability and prevents potential crashes during container iteration.
- Loading branch information