copy preloadCallCount in FilePool copy constructors. this was critical to avoid crashing behavior when the SFZ is reloaded.

This commit is contained in:
essej 2023-05-27 16:36:29 -04:00
parent f407ea8d64
commit ad236085fa

View file

@ -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();