Right now Rehlds hooks are removed in GameShutdownPost and SV_DropClient is called after ServerDeactivatePost that means the forward which is meant to be called in plugins (currently unloaded either way) is already freed and causes crash.
Motivation and Context
Fix crash when typing quit in the server's console when there are players on the server.
How has this been tested?
By typing quit in the server's console while being on the server.
Screenshots (if appropriate):
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Checklist:
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
Description
Right now Rehlds hooks are removed in
GameShutdownPost
andSV_DropClient
is called afterServerDeactivatePost
that means the forward which is meant to be called in plugins (currently unloaded either way) is already freed and causes crash.Motivation and Context
Fix crash when typing
quit
in the server's console when there are players on the server.How has this been tested?
By typing
quit
in the server's console while being on the server.Screenshots (if appropriate):
Types of changes
Checklist: