summaryrefslogtreecommitdiffstats
path: root/src/audio_core/behavior_info.cpp
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2020-07-25 04:32:05 +0200
committerDavid Marcec <dmarcecguzman@gmail.com>2020-07-25 04:39:37 +0200
commitb924c71822225b6de396b687debb93c1af59e2d6 (patch)
tree00a200376275423a7bd58204ec21fae6ae0da846 /src/audio_core/behavior_info.cpp
parentQueue extra mix buffer (diff)
downloadyuzu-b924c71822225b6de396b687debb93c1af59e2d6.tar
yuzu-b924c71822225b6de396b687debb93c1af59e2d6.tar.gz
yuzu-b924c71822225b6de396b687debb93c1af59e2d6.tar.bz2
yuzu-b924c71822225b6de396b687debb93c1af59e2d6.tar.lz
yuzu-b924c71822225b6de396b687debb93c1af59e2d6.tar.xz
yuzu-b924c71822225b6de396b687debb93c1af59e2d6.tar.zst
yuzu-b924c71822225b6de396b687debb93c1af59e2d6.zip
Diffstat (limited to '')
-rw-r--r--src/audio_core/behavior_info.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio_core/behavior_info.cpp b/src/audio_core/behavior_info.cpp
index b7cd8f17d..5d62adb0b 100644
--- a/src/audio_core/behavior_info.cpp
+++ b/src/audio_core/behavior_info.cpp
@@ -99,7 +99,7 @@ bool BehaviorInfo::IsSplitterBugFixed() const {
void BehaviorInfo::CopyErrorInfo(BehaviorInfo::OutParams& dst) {
dst.error_count = static_cast<u32>(error_count);
- std::memcpy(dst.errors.data(), errors.data(), sizeof(ErrorInfo) * dst.errors.size());
+ std::copy(errors.begin(), errors.begin() + error_count, dst.errors.begin());
}
} // namespace AudioCore