Skip to content

Commit

Permalink
client: touch: fix minor typo that prevented editing touch buttons co…
Browse files Browse the repository at this point in the history
…mmands
  • Loading branch information
Velaron authored and a1batross committed Mar 2, 2025
1 parent c76752c commit 884a3c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/client/in_touch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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" );
Expand Down

0 comments on commit 884a3c6

Please # to comment.