Skip to content

Add guards in fire beetle target tracker thread - #7283

Draft
lL1l1 wants to merge 4 commits into
developfrom
fix/fire-beetle-errors
Draft

Add guards in fire beetle target tracker thread#7283
lL1l1 wants to merge 4 commits into
developfrom
fix/fire-beetle-errors

Conversation

@lL1l1

@lL1l1 lL1l1 commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Description of the proposed changes

Solves errors in replay 27759573 (faf beta version bf1e5fe)

warning: Error running lua script: ...\gamedata\units.nx4\units\xrl0302\xrl0302_script.lua(133): Game object has been destroyed
         stack traceback:
         	[C]: in function `SetDestUnit'
         	...\gamedata\units.nx4\units\xrl0302\xrl0302_script.lua(133): in function <...\gamedata\units.nx4\units\xrl0302\xrl0302_script.lua:107>
warning: Error running lua script: ...\gamedata\units.nx4\units\xrl0302\xrl0302_script.lua(124): Game object has been destroyed
         stack traceback:
         	[C]: in function `SetEnabled'
         	...\gamedata\units.nx4\units\xrl0302\xrl0302_script.lua(124): in function <...\gamedata\units.nx4\units\xrl0302\xrl0302_script.lua:107>

Testing done on the proposed changes

Additional context

Checklist

Solves
```
warning: Error running lua script: ...\gamedata\units.nx4\units\xrl0302\xrl0302_script.lua(133): Game object has been destroyed
         stack traceback:
         	[C]: in function `SetDestUnit'
         	...\gamedata\units.nx4\units\xrl0302\xrl0302_script.lua(133): in function <...\gamedata\units.nx4\units\xrl0302\xrl0302_script.lua:107>
```
```
warning: Error running lua script: ...\gamedata\units.nx4\units\xrl0302\xrl0302_script.lua(124): Game object has been destroyed
         stack traceback:
         	[C]: in function `SetEnabled'
         	...\gamedata\units.nx4\units\xrl0302\xrl0302_script.lua(124): in function <...\gamedata\units.nx4\units\xrl0302\xrl0302_script.lua:107>
```
@lL1l1 lL1l1 added the type: bug label Sep 7, 2026
@coderabbitai

coderabbitai Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants