diff options
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 |