Skip to content

fix: more risk improvements - #1434

Open
OH296 wants to merge 4 commits into
Adeptus-Dominus:mainfrom
OH296:chapter_spread
Open

fix: more risk improvements#1434
OH296 wants to merge 4 commits into
Adeptus-Dominus:mainfrom
OH296:chapter_spread

Conversation

@OH296

@OH296 OH296 commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Summary by cubic

Fixes crashes and miscounts in chapter spread and squads by cleaning invalid unit entries, normalizing marine_number after deletions, and centralizing marine/command tallying. Reverse iteration prevents array-delete issues during deserialization and member loops.

  • Bug Fixes
    • Squad deserialization resolves member UIDs and prunes undefined entries in one reverse pass.
    • UnitSquad member loop uses resolved members directly and prunes non-struct entries safely.
    • Added normalise_marine_numbers to reindex marine_number after deletions; tally_marines now reverse-iterates, removes invalid obj_ini.TTRPG slots, updates command/marine counts, and calculate_full_chapter_spread calls it.

Written for commit 364dc10. Summary will update on new commits.

Review in cubic

@github-actions github-actions Bot added Size: Tiny Type: Fix This is a fix for a bug labels Aug 11, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 4 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread objects/obj_ini/Create_0.gml Outdated
Comment thread scripts/scr_company_order/scr_company_order.gml
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 1 file (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Auto-approval blocked by 1 unresolved issue from previous reviews.

Re-trigger cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Size: Small Type: Fix This is a fix for a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant