mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-18 11:00:33 +00:00
client: fix assert when sprite exist, but not loadable
This commit is contained in:
parent
2b90790071
commit
70cddcb9ca
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user