Browse Source

sl: don't remove the lump added in the 'after' list of delete lump

- they are destroyed together, making the operation useless
Daniel-Constantin Mierla 10 years ago
parent
commit
338b00c0f2
1 changed files with 2 additions and 3 deletions
  1. 2 3
      modules/sl/sl.c

+ 2 - 3
modules/sl/sl.c

@@ -437,9 +437,8 @@ restore:
 	if(reason!=NULL) {
 		if(ldel!=NULL) {
 			remove_lump(msg, ldel);
-		}
-		if(ladd!=NULL) {
-			remove_lump(msg, ladd);
+			/* ladd is liked in the 'after' list inside ldel,
+			 * destroyed together, no need for its own remove operation */
 		}
 	}
 	if(code!=NULL) {