NeotokyoRebuild / neo

NEOTOKYO Rebuild - Source SDK 2013 mod of NEOTOKYO
Other
11 stars 9 forks source link

[BUG] Assertion hit if switching guns when aimed in #398

Open Rainyan opened 1 week ago

Rainyan commented 1 week ago

Build Info

20240624_8d02776

Description

Only affects debug builds.

If you switch to a gun that cannot be aimed-in with (knife, grenades...) while already aiming another gun, an assertion failure is hit at game/client/hud_crosshair.cpp:272.

A pragmatic solution would be to just silence the assert, but it might be prudent to investigate why we're hitting it in the first place and solve the root cause instead.

To Reproduce

Expected behavior

Nothing dramatic happens.

Actual behavior

A debug assertion is hit.

Operating System

Version/Distro

10

Machine's CPU

No response

Machine's GPU

No response

GPU's driver

No response

Build's compiler

No response

Additional context and Screenshots

No response