@ -360,7 +360,6 @@ typedef struct
typedef struct
{
qboolean initialized; // sv_init has completed
qboolean game_library_loaded; // is game library loaded in SV_InitGame
double timestart; // just for profiling
int maxclients; // server max clients
@ -5130,7 +5130,6 @@ void SV_UnloadProgs( void )
Mod_ResetStudioAPI ();
svs.game_library_loaded = false;
COM_FreeLibrary( svgame.hInstance );
Mem_FreePool( &svgame.mempool );
memset( &svgame, 0, sizeof( svgame ));
@ -706,7 +706,7 @@ qboolean SV_InitGame( void )
string dllpath;
if( svs.game_library_loaded )
if( svgame.hInstance )
return true;
// first initialize?
@ -721,7 +721,6 @@ qboolean SV_InitGame( void )
}
// client frames will be allocated in SV_ClientConnect
svs.game_library_loaded = true;