From 1bf08cc2c367b1c3524fc8d0a071eb1901eb27b7 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 27 Jan 2022 17:10:50 +0300 Subject: [PATCH] engine: touch: fix button deletion --- 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 343b41a2..f59c88c5 100644 --- a/engine/client/in_touch.c +++ b/engine/client/in_touch.c @@ -530,7 +530,7 @@ static void Touch_RemoveButtonFromList( touchbuttonlist_t *list, const char *nam IN_TouchEditClear(); - while(( button = Touch_FindFirst( &touch.list_user, name, !privileged ))) + while(( button = Touch_FindFirst( &touch.list_user, name, privileged ))) { if( button->prev ) button->prev->next = button->next;