Fix linked list bug in event_replicate()
This commit is contained in:
parent
c2a723098f
commit
deea29898a
2
events.c
2
events.c
|
@ -25,7 +25,7 @@ event_replicate(EventNode * source, size_t count)
|
||||||
replica->data.modifiers = modifier_set_copy(source->data.modifiers);
|
replica->data.modifiers = modifier_set_copy(source->data.modifiers);
|
||||||
replica->prev = source;
|
replica->prev = source;
|
||||||
replica->next = source->next;
|
replica->next = source->next;
|
||||||
source->next->next->prev = replica;
|
source->next->prev = replica;
|
||||||
source->next = replica;
|
source->next = replica;
|
||||||
}
|
}
|
||||||
return i;
|
return i;
|
||||||
|
|
Loading…
Reference in New Issue