[ ] While waiting for a review on your PR, please help review another open pull request to support the maintainers
Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.
🦟 Bug fix
Fixes #2198
Summary
Reorders the
erase
operations to avoid using an invalidated iterator. This is already done in theign-gazebo6
branch: https://github.com/gazebosim/gz-sim/blob/fb3f3d43eee648e387f89d611dd2a9973fff201e/src/systems/physics/EntityFeatureMap.hh#L255-L286Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.