mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-11-15 22:46:23 +01:00
engine: touch: fix button deletion
This commit is contained in:
parent
36d757c74a
commit
1bf08cc2c3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user