From 8e17f20de28baa6c053d4493d2d4bc01f7e0ab66 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sun, 20 Feb 2022 23:07:46 -0500 Subject: [PATCH] fix deep clone not working at times --- src/engine/engine.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/engine/engine.cpp b/src/engine/engine.cpp index 2f3d75e9a..5354de1a7 100644 --- a/src/engine/engine.cpp +++ b/src/engine/engine.cpp @@ -1829,19 +1829,24 @@ void DivEngine::deepCloneOrder(bool where) { warnings=""; isBusy.lock(); for (int i=0; idata,oldPat->data,256*32*sizeof(short)); + logD("found at %d\n",j); + didNotFind=false; break; } } - if (order[i]==song.orders.ord[i][curOrder]) { + if (didNotFind) { addWarning(fmt::sprintf("no free patterns in channel %d!",i)); } }