mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-04 18:09:53 +03:00
game: fix ent_create crash if entity model is NULL
This commit is contained in:
@@ -6560,6 +6560,12 @@ float CAI_BaseNPC::ThrowLimit( const Vector &vecStart,
|
||||
//-----------------------------------------------------------------------------
|
||||
void CAI_BaseNPC::SetupVPhysicsHull()
|
||||
{
|
||||
if( GetModelPtr() == NULL )
|
||||
{
|
||||
UTIL_Remove( this );
|
||||
return;
|
||||
}
|
||||
|
||||
if ( GetMoveType() == MOVETYPE_VPHYSICS || GetMoveType() == MOVETYPE_NONE )
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user