diff options
Diffstat (limited to 'mp/src/game/client/clientshadowmgr.cpp')
| -rw-r--r-- | mp/src/game/client/clientshadowmgr.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mp/src/game/client/clientshadowmgr.cpp b/mp/src/game/client/clientshadowmgr.cpp index c37e7650..bd3e2c2a 100644 --- a/mp/src/game/client/clientshadowmgr.cpp +++ b/mp/src/game/client/clientshadowmgr.cpp @@ -1802,6 +1802,9 @@ ClientShadowHandle_t CClientShadowMgr::CreateProjectedTexture( ClientEntityHandl if( !( flags & SHADOW_FLAGS_FLASHLIGHT ) ) { IClientRenderable *pRenderable = ClientEntityList().GetClientRenderableFromHandle( entity ); + if ( !pRenderable ) + return m_Shadows.InvalidIndex(); + int modelType = modelinfo->GetModelType( pRenderable->GetModel() ); if (modelType == mod_brush) { |