engine: fix inverted check in DLL unloading in settings.scr parsing

Fixes: aee99f6094
This commit is contained in:
Alibek Omarov 2023-08-03 02:40:02 +03:00
parent e017b9145f
commit 2067667c9c
1 changed files with 1 additions and 1 deletions

View File

@ -1450,7 +1450,7 @@ void GAME_EXPORT Host_WriteServerConfig( const char *name )
else Con_DPrintf( S_ERROR "Couldn't write %s.\n", name );
// don't unload library that wasn't loaded by us
if( already_loaded )
if( !already_loaded )
SV_FreeGameProgs(); // release progs with all variables
}