client: touch: fix minor typo that prevented editing touch buttons commands

This commit is contained in:
Bohdan Shulyar 2025-03-02 19:07:07 +02:00 committed by Alibek Omarov
parent c76752cc5f
commit 884a3c66ac

View file

@ -761,7 +761,7 @@ static void Touch_SetCommand_f( void )
{
touch_button_t *button = Touch_FindButtonNoPattern( &touch.list_user, Cmd_Argv( 1 ), Cmd_CurrentCommandIsPrivileged( ));
if( !button )
if( button )
Touch_SetCommand( button, Cmd_Argv( 2 ) );
else
Con_Printf( S_ERROR "no such button" );