Fix linked list bug in event_replicate()

This commit is contained in:
Vftdan 2024-08-15 22:10:55 +02:00
parent c2a723098f
commit deea29898a
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ event_replicate(EventNode * source, size_t count)
replica->data.modifiers = modifier_set_copy(source->data.modifiers);
replica->prev = source;
replica->next = source->next;
source->next->next->prev = replica;
source->next->prev = replica;
source->next = replica;
}
return i;