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:
parent
3955c1b8fc
commit
8c394c03c2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user