From 1b43851c6d47ff3d93921d8f17bde901d4eb39ea Mon Sep 17 00:00:00 2001 From: Night Owl Date: Fri, 31 Mar 2017 13:43:16 +0500 Subject: [PATCH] Fix crash. --- dlls/cbase.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/cbase.cpp b/dlls/cbase.cpp index 62b4eaa1..247194aa 100644 --- a/dlls/cbase.cpp +++ b/dlls/cbase.cpp @@ -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;