Browse Source

Fix crash.

aghl
Night Owl 8 years ago
parent
commit
1b43851c6d
  1. 2
      dlls/cbase.cpp

2
dlls/cbase.cpp

@ -751,6 +751,8 @@ CBaseEntity *CBaseEntity::Create( char *szName, const Vector &vecOrigin, const V @@ -751,6 +751,8 @@ CBaseEntity *CBaseEntity::Create( char *szName, const Vector &vecOrigin, const V
return NULL;
}
pEntity = Instance( pent );
if( !pEntity )
return NULL;
pEntity->pev->owner = pentOwner;
pEntity->pev->origin = vecOrigin;
pEntity->pev->angles = vecAngles;

Loading…
Cancel
Save