Browse Source

client: fix assert when sprite exist, but not loadable

pull/2/head
mittorn 5 years ago
parent
commit
70cddcb9ca
  1. 3
      engine/client/cl_game.c

3
engine/client/cl_game.c

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

Loading…
Cancel
Save