From 463aa5900cc29502d703278a786768a2bb4beae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophyl=20Hoguet?= Date: Thu, 6 Jan 2022 18:06:59 +0100 Subject: [PATCH] bug history copy --- history.c | 1 + 1 file changed, 1 insertion(+) diff --git a/history.c b/history.c index 4f8a8da..c0dd89c 100644 --- a/history.c +++ b/history.c @@ -201,6 +201,7 @@ history history_copy(history h) { h = history_next(h); cpt++; } + h = history_first(h); history h2 = history_insert_first(history_create_empty(), h->state, h->i, h->j); while (!history_is_empty(history_next(h))) { h = history_next(h);