Fixed shutdown bug in SDKTools (created EntOutputMgr shutdown func) (bug 5063, r=fyren).

This commit is contained in:
David Anderson 2011-10-17 10:47:13 -04:00
parent 4b0373408d
commit 5ec70c9e0d
3 changed files with 3 additions and 3 deletions

View File

@ -202,6 +202,7 @@ void SDKTools::SDK_OnUnload()
s_TempEntHooks.Shutdown(); s_TempEntHooks.Shutdown();
s_SoundHooks.Shutdown(); s_SoundHooks.Shutdown();
g_Hooks.Shutdown(); g_Hooks.Shutdown();
g_OutputManager.Shutdown();
gameconfs->CloseGameConfigFile(g_pGameConf); gameconfs->CloseGameConfigFile(g_pGameConf);
playerhelpers->RemoveClientListener(&g_SdkTools); playerhelpers->RemoveClientListener(&g_SdkTools);

View File

@ -44,7 +44,7 @@ EntityOutputManager::EntityOutputManager()
enabled = false; enabled = false;
} }
EntityOutputManager::~EntityOutputManager() void EntityOutputManager::Shutdown()
{ {
if (!enabled) if (!enabled)
{ {

View File

@ -90,10 +90,9 @@ class EntityOutputManager : public IPluginsListener
{ {
public: public:
EntityOutputManager(); EntityOutputManager();
~EntityOutputManager();
public: public:
void Init(); void Init();
void Shutdown();
bool IsEnabled(); bool IsEnabled();
void FireEventDetour(void *pOutput, CBaseEntity *pActivator, CBaseEntity *pCaller, float fDelay); void FireEventDetour(void *pOutput, CBaseEntity *pActivator, CBaseEntity *pCaller, float fDelay);