Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xrGame: Fix aim_bullet being uninitialized #5

Merged

Conversation

clayne
Copy link
Contributor

@clayne clayne commented Aug 10, 2023

  • ShootingObject.cpp: Set aim_bullet to false to avoid uninitialized variable warning. There was previously a block of code used to init this variable that has since been commented out in Anomaly 1.5.2. The only documentation in the changelog for it is:

    �� removed leftovers use_aim_bullet = true
    – Removed use_aim_bullet

xray-monolith\src\xrGame\ShootingObject.cpp(526): warning C4700: uninitialized local variable 'aim_bullet' used
* ShootingObject.cpp: Set aim_bullet to false to avoid uninitialized
  variable warning. There was previously a block of code used to init
  this variable that has since been commented out in Anomaly 1.5.2.
  The only documentation in the changelog for it is:

  – removed leftovers use_aim_bullet = true
  – Removed use_aim_bullet

  xray-monolith\src\xrGame\ShootingObject.cpp(526): warning C4700: uninitialized local variable 'aim_bullet' used
@themrdemonized themrdemonized changed the base branch from vs2022 to all-in-one-vs2022 August 10, 2023 18:32
@themrdemonized themrdemonized changed the base branch from all-in-one-vs2022 to vs2022 August 10, 2023 18:33
@themrdemonized themrdemonized merged commit 9939ce1 into themrdemonized:vs2022 Aug 10, 2023
@clayne clayne deleted the 1691550966-aim-bullet-fix branch August 19, 2023 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants