Skip to content

Refactor: Adjust scope and initialization of doAnimation variable during veterancy update - #173

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/refactor-doanimation-scope
Open

Refactor: Adjust scope and initialization of doAnimation variable during veterancy update#173
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/refactor-doanimation-scope

Conversation

@seer-by-sentry

Copy link
Copy Markdown

Fixes CLIENT-16G. The issue was that: Audio event generation uses uninitialized AudioEventInfo pointer due to variable shadowing in onVeterancyLevelChanged logic.

  • Moved the declaration of the local variable doAnimation to the beginning of the veterancy level change logic.
  • Initialized doAnimation to FALSE upon declaration.
  • Converted the subsequent calculation of doAnimation from a declaration/initialization statement to a simple assignment.

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

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