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

Fix event code crashing if weapon prediction is disabled #132

Closed SamVanheer closed 2 years ago

SamVanheer commented 2 years ago

The event code depends on the g_engfuncs global being initialized. This global is only initialized if weapon prediction is enabled.

Ensure this global initializes regardless of whether weapon prediction is enabled.