Browse Source

engine: ref: remove redutant LoadLibrary call

pull/2/head
Alibek Omarov 6 years ago
parent
commit
6197ba8af6
  1. 10
      engine/client/ref_common.c

10
engine/client/ref_common.c

@ -430,15 +430,11 @@ static qboolean R_LoadProgs( const char *name )
return false; return false;
} }
#else #else
FS_AllowDirectPaths( true );
if( !(ref.hInstance = COM_LoadLibrary( name, false, true ) )) if( !(ref.hInstance = COM_LoadLibrary( name, false, true ) ))
{ {
FS_AllowDirectPaths( true ); FS_AllowDirectPaths( false );
if( !(ref.hInstance = COM_LoadLibrary( name, false, true ) )) return false;
{
FS_AllowDirectPaths( false );
return false;
}
} }
#endif #endif

Loading…
Cancel
Save