bugfix(saveload): Restore dock approach flags when loading in DockUpdate::xfer() - #3117
Conversation
9037f30 to
7f5465a
Compare
7f5465a to
90633c2
Compare
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. Walkthrough
ChangesDock approach flag restoration
Priority: ➖ Normal Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to The save/load change restores dock approach state without altering the save format or slot ownership. No actionable merge risk remains. 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
Comment |
|
Fixes #3116.
DockUpdate::xferloads each approach reached flag into a temporaryBoolbut never copies it back into the vector. Write it back so thesaved flags are restored. The save format is unchanged.
Verified on MD_CHI01 and a skirmish with multiple supply queues:
1000000000loaded as0000000000before the fix and1000000000after it. Slot owners were preserved in both cases.The queues recovered without the fix; this restores the saved state.
Related: #3151 fixes a separate field in the same function.