mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-07 17:29:36 +00:00
game: fix ent_create crash if entity model is NULL
This commit is contained in:
@@ -5943,6 +5943,8 @@ const char *Studio_GetDefaultSurfaceProps( CStudioHdr *pstudiohdr )
|
||||
|
||||
float Studio_GetMass( CStudioHdr *pstudiohdr )
|
||||
{
|
||||
if( pstudiohdr == NULL ) return 0.f;
|
||||
|
||||
return pstudiohdr->mass();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user