| changeset 2732 | dbe9e8ed3703 |
| parent 2711 | 858723415154 |
| child 2910 | e8f6e9f3401a |
1.1 --- a/extensions/sdktools/hooks.cpp Sat May 16 16:32:21 2009 -0700 1.2 +++ b/extensions/sdktools/hooks.cpp Tue May 19 15:16:25 2009 +1200 1.3 @@ -88,7 +88,13 @@ 1.4 return; 1.5 } 1.6 1.7 - CBaseEntity *pEntity = pEdict->GetUnknown()->GetBaseEntity(); 1.8 + IServerUnknown *pUnknown = pEdict->GetUnknown(); 1.9 + if (!pUnknown) 1.10 + { 1.11 + return; 1.12 + } 1.13 + 1.14 + CBaseEntity *pEntity = pUnknown->GetBaseEntity(); 1.15 if (!pEntity) 1.16 { 1.17 return;