Fixed crash when TF2 extension couldn't load.
authorDavid Anderson <dvander@alliedmods.net>
Sat Aug 23 09:46:52 2008 +0000 (2008-08-23)
changeset 2234ff23c303ae74
parent 2233 2f6ed6b38881
child 2235 a44942987c81
Fixed crash when TF2 extension couldn't load.
core/systems/ForwardSys.cpp
     1.1 --- a/core/systems/ForwardSys.cpp	Sat Aug 23 09:29:27 2008 +0000
     1.2 +++ b/core/systems/ForwardSys.cpp	Sat Aug 23 09:46:52 2008 +0000
     1.3 @@ -186,6 +186,11 @@
     1.4  
     1.5  void CForwardManager::ForwardFree(CForward *fwd)
     1.6  {
     1.7 +    if (fwd == NULL)
     1.8 +    {
     1.9 +        return;
    1.10 +    }
    1.11 +
    1.12  	m_FreeForwards.push(fwd);
    1.13  	m_managed.remove(fwd);
    1.14  }