engine: touch: fix button deletion

This commit is contained in:
Alibek Omarov 2022-01-27 17:10:50 +03:00
parent 36d757c74a
commit 1bf08cc2c3

View File

@ -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;