diff options
author | Chris Robinson <[email protected]> | 2023-12-20 01:53:27 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-12-20 01:53:27 -0800 |
commit | aa6e04a5562052db172117043165ae999683b052 (patch) | |
tree | 11b36fabd9a542aca0f5ad234d365ce8067dd46d /alc/effects/dedicated.cpp | |
parent | 59c466077fd6f16af64afcc6260bb61aa4e632dc (diff) |
Ensure struct members are initialized
Diffstat (limited to 'alc/effects/dedicated.cpp')
-rw-r--r-- | alc/effects/dedicated.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/effects/dedicated.cpp b/alc/effects/dedicated.cpp index 609776ad..a3d4298d 100644 --- a/alc/effects/dedicated.cpp +++ b/alc/effects/dedicated.cpp @@ -47,8 +47,8 @@ struct DedicatedState final : public EffectState { * gains for all possible output channels and not just the main ambisonic * buffer. */ - std::array<float,MaxOutputChannels> mCurrentGains; - std::array<float,MaxOutputChannels> mTargetGains; + std::array<float,MaxOutputChannels> mCurrentGains{}; + std::array<float,MaxOutputChannels> mTargetGains{}; void deviceUpdate(const DeviceBase *device, const BufferStorage *buffer) override; |