From 0d8dceea4310fde5706b3ce1c70609d72a38efdf Mon Sep 17 00:00:00 2001 From: John Schoenick Date: Wed, 9 Sep 2015 18:35:41 -0700 Subject: Updated the SDK with the latest code from the TF and HL2 branches. --- mp/src/game/client/clientshadowmgr.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mp/src/game/client/clientshadowmgr.cpp') 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) { -- cgit v1.2.3