diff options
Diffstat (limited to 'sp/src/game/server/util.cpp')
| -rw-r--r-- | sp/src/game/server/util.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sp/src/game/server/util.cpp b/sp/src/game/server/util.cpp index 8b2365f7..431c8561 100644 --- a/sp/src/game/server/util.cpp +++ b/sp/src/game/server/util.cpp @@ -1892,7 +1892,8 @@ int DispatchSpawn( CBaseEntity *pEntity ) // Don't allow the PVS check to skip animation setup during spawning
pAnimating->SetBoneCacheFlags( BCF_IS_IN_SPAWN );
pEntity->Spawn();
- pAnimating->ClearBoneCacheFlags( BCF_IS_IN_SPAWN );
+ if ( pEntSafe != NULL )
+ pAnimating->ClearBoneCacheFlags( BCF_IS_IN_SPAWN );
}
mdlcache->SetAsyncLoad( MDLCACHE_ANIMBLOCK, bAsyncAnims );
|