diff options
author | David Marcec <dmarcecguzman@gmail.com> | 2020-07-25 04:32:05 +0200 |
---|---|---|
committer | David Marcec <dmarcecguzman@gmail.com> | 2020-07-25 04:39:37 +0200 |
commit | b924c71822225b6de396b687debb93c1af59e2d6 (patch) | |
tree | 00a200376275423a7bd58204ec21fae6ae0da846 /src/audio_core/behavior_info.cpp | |
parent | Queue extra mix buffer (diff) | |
download | yuzu-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 'src/audio_core/behavior_info.cpp')
-rw-r--r-- | src/audio_core/behavior_info.cpp | 2 |
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 |