Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

objmem: properly check for missing elements in freeAllEntitiesImpl #4069

Conversation

ManManson
Copy link
Member

It's forbidden to invoke .erase() on the end iterator, so avoid calling the method by guarding this code path by a continue + ASSERT combination.

It's forbidden to invoke `.erase()` on the end iterator,
so avoid calling the method by guarding this code path
by a `continue` + `ASSERT` combination.

Signed-off-by: Pavel Solodovnikov <[email protected]>
@past-due past-due merged commit 9f59a73 into Warzone2100:master Sep 18, 2024
37 checks passed
@ManManson ManManson deleted the free_all_entities_impl_fix_missing_element_check branch September 18, 2024 19:08
@KJeff01 KJeff01 added this to the 4.5.4 milestone Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants