inpcom.c, inp_add_series_resistor(), reorder

deploy value for 'd->li_next' in the li_next slot and fetch from there
This commit is contained in:
rlar 2017-04-22 10:38:47 +02:00
parent 0d17fffb00
commit 2ce71c10ef
1 changed files with 1 additions and 1 deletions

View File

@ -5551,8 +5551,8 @@ inp_add_series_resistor(struct line *deck)
// insert new new L and R lines immediately after current line
*(card->li_line) = '*';
d = xx_new_line(NULL, newR, 0, 0);
card = card->li_next = xx_new_line(card->li_next, newL, 0, 0);
d->li_next = card->li_next;
card = card->li_next = xx_new_line(NULL, newL, 0, 0);
card->li_next = d;
card = d;