1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-11-28 10:24:20 +01:00

S2: fix ClientCommand not getting unhooked on shutdown

This commit is contained in:
Nick Hastings 2023-10-15 23:05:37 -04:00
parent 3955c1b8fc
commit 8c394c03c2

View File

@ -154,6 +154,11 @@ void Source2Provider::Notify_DLLInit_Pre(CreateInterfaceFn engineFactory,
void Source2Provider::Notify_DLLShutdown_Pre()
{
ConVar_Unregister();
if (gameclients)
{
SH_REMOVE_HOOK(IServerGameClients, ClientCommand, gameclients, SH_MEMBER(this, &Source2Provider::Hook_ClientCommand), false);
}
}
bool Source2Provider::ProcessVDF(const char* file, char path[], size_t path_len, char alias[], size_t alias_len)