Fix build.

This commit is contained in:
Andrey Akhmichin 2022-06-05 20:17:34 +05:00
parent f667a0ac38
commit 2b38cb642f
No known key found for this signature in database
GPG Key ID: 1F180D249B0643C0

View File

@ -680,7 +680,7 @@ void ClientCommand( edict_t *pEntity )
}
else if( FStrEq( pcmd, "make" ) )
{
if( g_pGameRules->IsMonster() && !g_flWeaponCheat )
if( g_pGameRules->IsMonster() && !g_enable_cheats->value )
return;
int iszItem = ALLOC_STRING( CMD_ARGV( 1 ) ); // Make a copy of the classname