Amaroq7 / SPMod

SourcePawn Scripting Engine for Half-Life 1 based games
GNU General Public License v3.0
27 stars 12 forks source link

Fix crash #31

Closed Amaroq7 closed 5 years ago

Amaroq7 commented 5 years ago

Description

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

Checklist: