diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 2c9b20d13..bcad74150 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -5548,10 +5548,11 @@ inp_add_series_resistor(struct line *deck) struct line *d; // comment out current L line - // insert new new L and R lines immediately after current line *(card->li_line) = '*'; - d = xx_new_line(NULL, newR, 0, 0); + + // insert new new L and R lines immediately after current line card = card->li_next = xx_new_line(card->li_next, newL, 0, 0); + d = xx_new_line(NULL, newR, 0, 0); d->li_next = card->li_next; card->li_next = d; card = d;