Skip to content

Fix: Prevent power disable on objects with unready modules#398

Open
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/power-disable-unready-modules
Open

Fix: Prevent power disable on objects with unready modules#398
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/power-disable-unready-modules

Conversation

@seer-by-sentry
Copy link

Fixes CLIENT-43N. The issue was that: Object construction triggers power recalculation, iterating partially initialized objects, causing read access violation.

  • Added a check for obj->areModulesReady() before an object can be disabled due to power issues.
  • This ensures that objects are fully initialized and their modules are ready before they can be affected by power-related disabling.
  • Applied to both Generals and GeneralsMD versions of Player.cpp.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 12140829

Not quite right? Click here to continue debugging with Seer.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants