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

Remove useless try-catch statement in command menu parsing code #64

Closed SamVanheer closed 2 years ago

SamVanheer commented 2 years ago

There is a try-catch statement in the command menu parsing code that is completely useless. No exception of type CException exists, the exception is caught incorrectly (by non-const pointer instead of const reference), and nothing will throw the exception.

Remove this statement.