From d8dccfbf84061f0a6e5d0b5b86f0662ab49bca6e Mon Sep 17 00:00:00 2001 From: epoch Date: Tue, 2 Jan 2018 06:13:25 -0600 Subject: added group rotation deletion inside deleteallexcept --- src/hackvr.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/hackvr.c b/src/hackvr.c index 5ce9a52..7ae6616 100644 --- a/src/hackvr.c +++ b/src/hackvr.c @@ -174,7 +174,17 @@ int load_stdin() {//this function returns -1 to quit, 0 to not ask for a redraw, ret=1; //now do the same stuff but for the group_rot structs. for(j=0;global.group_rot[j];j++) { - + if(strcmp(global.group_rot[j]->id,a[2])) { + free(global.group_rot[j]->id); + free(global.group_rot[j]); + global.group_rot[j]=0; + } + } + for(k=0;k