From 884a3c66ac781bde91905541a17e0f357069074e Mon Sep 17 00:00:00 2001 From: Bohdan Shulyar Date: Sun, 2 Mar 2025 19:07:07 +0200 Subject: [PATCH] client: touch: fix minor typo that prevented editing touch buttons commands --- engine/client/in_touch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/client/in_touch.c b/engine/client/in_touch.c index 363e583e..fe2006ce 100644 --- a/engine/client/in_touch.c +++ b/engine/client/in_touch.c @@ -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" );