loopfiles fix
parent
50c2fd84c4
commit
ad168a2b81
|
@ -2654,7 +2654,7 @@ ICOMMAND(loopfiles, "rsse", (ident *id, char *dir, char *ext, uint *body),
|
|||
char *file = files[i];
|
||||
bool redundant = false;
|
||||
loopj(i) if(!strcmp(files[j], file)) { redundant = true; break; }
|
||||
if(redundant) { delete[] file; continue; }
|
||||
if(redundant) { delete[] files.removeunordered(i--); continue; }
|
||||
if(i)
|
||||
{
|
||||
if(id->valtype == VAL_STR) delete[] id->val.s;
|
||||
|
|
Loading…
Reference in New Issue