twhl-community / halflife-updated

Half-Life SDK updated to compile under VS2019 and 2022. Check README.md for more information.
Other
382 stars 146 forks source link

Initialize static variables in V_CalcBob #126

Closed SamVanheer closed 2 years ago

SamVanheer commented 2 years ago

The function V_CalcBob doesn't initialize its static local variables, which can cause invalid data to be calculated. In debug builds it will also cause runtime checks to break into the debugger when it detects use of uninitialized variables.