2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-27 20:40:24 +01:00

engine: server: fix incorrect NULL check in pfnCvar_RegisterServerVariable

This commit is contained in:
Alibek Omarov 2024-04-05 18:45:15 +03:00
parent f070bbef3c
commit 6881ee742d

View File

@ -2810,9 +2810,11 @@ standard path to register game variable
static void GAME_EXPORT pfnCvar_RegisterServerVariable( cvar_t *variable ) static void GAME_EXPORT pfnCvar_RegisterServerVariable( cvar_t *variable )
{ {
if( variable != NULL ) if( variable != NULL )
{
SetBits( variable->flags, FCVAR_EXTDLL ); SetBits( variable->flags, FCVAR_EXTDLL );
Cvar_RegisterVariable( (convar_t *)variable ); Cvar_RegisterVariable( (convar_t *)variable );
} }
}
/* /*
============= =============