client: fix assert when sprite exist, but not loadable

This commit is contained in:
mittorn 2020-02-08 22:47:01 +07:00
parent 2b90790071
commit 70cddcb9ca
1 changed files with 2 additions and 1 deletions

View File

@ -1209,7 +1209,8 @@ static qboolean CL_LoadHudSprite( const char *szSpriteName, model_t *m_pSprite,
}
buf = FS_LoadFile( szSpriteName, &size, false );
ASSERT( buf != NULL );
if( buf == NULL )
return false;
if( type == SPR_MAPSPRITE )
ref.dllFuncs.Mod_LoadMapSprite( m_pSprite, buf, size, &loaded );