From ad236085fa31f435602104e94176c177687d4eac Mon Sep 17 00:00:00 2001 From: essej Date: Sat, 27 May 2023 16:36:29 -0400 Subject: [PATCH] copy preloadCallCount in FilePool copy constructors. this was critical to avoid crashing behavior when the SFZ is reloaded. --- src/sfizz/FilePool.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sfizz/FilePool.h b/src/sfizz/FilePool.h index f76e2783..6adbe229 100644 --- a/src/sfizz/FilePool.h +++ b/src/sfizz/FilePool.h @@ -90,6 +90,7 @@ struct FileData information = std::move(other.information); preloadedData = std::move(other.preloadedData); fileData = std::move(other.fileData); + preloadCallCount = other.preloadCallCount; availableFrames = other.availableFrames.load(); lastViewerLeftAt = other.lastViewerLeftAt; status = other.status.load(); @@ -100,6 +101,7 @@ struct FileData information = std::move(other.information); preloadedData = std::move(other.preloadedData); fileData = std::move(other.fileData); + preloadCallCount = other.preloadCallCount; availableFrames = other.availableFrames.load(); lastViewerLeftAt = other.lastViewerLeftAt; status = other.status.load();