Skip to content

Fix gun_user bad index runtimes: comp_lookup is a lazy list#12444

Open
Drulikar wants to merge 2 commits into
cmss13-devs:masterfrom
Drulikar:fix_bad_index_gun_user
Open

Fix gun_user bad index runtimes: comp_lookup is a lazy list#12444
Drulikar wants to merge 2 commits into
cmss13-devs:masterfrom
Drulikar:fix_bad_index_gun_user

Conversation

@Drulikar

@Drulikar Drulikar commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

About the pull request

This PR just fixes a runtime where a lazy list is accessed but lazylists are called lazy because they should be null when empty.

Explain why it's good for the game

Fixes
image

Testing Photographs and Procedure

Dropped and shot a gun a bunch.

Changelog

🆑 Drathek
fix: Fixed a runtime with set_gun_user causing a bad index because its a lazy list
/:cl:

@Drulikar Drulikar added the Runtime bad list x1000 label Jun 14, 2026
@github-project-automation github-project-automation Bot moved this to Awaiting Review in Review Backlog Jun 14, 2026
@cmss13-ci cmss13-ci Bot added Fix Fix one bug, make ten more size/XS Denotes a PR that changes 0-19 lines, ignoring generated files. labels Jun 14, 2026
@fira

fira commented Jun 14, 2026

Copy link
Copy Markdown
Member

This shouldn't use comp_lookup at all, it's DCS internals

Isn't override = TRUE on the signal registration an option here instead?

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

Labels

Fix Fix one bug, make ten more Runtime bad list x1000 size/XS Denotes a PR that changes 0-19 lines, ignoring generated files.

Projects

Status: Awaiting Review

Development

Successfully merging this pull request may close these issues.

2 participants