summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2026-05-29 22:07:14 +0200
committerJosJuice <josjuice@gmail.com>2026-05-29 22:09:13 +0200
commit635fa74b4ca574c8767110388263b3d813ca9105 (patch)
tree80559b9161312833263dc1d71a6e825424f875c1 /Source/Core
parentf820b22147c9fc741179fe40e3d57783dee47ff4 (diff)
Fix uninitialized variable warning in ZeldaAudioRenderer::ApplyReverb
If CopyFromEmuSwapped considers the address to be invalid, nothing will be written to the passed-in pointer.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/HW/DSPHLE/UCodes/Zelda.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Core/HW/DSPHLE/UCodes/Zelda.cpp b/Source/Core/Core/HW/DSPHLE/UCodes/Zelda.cpp
index 7334b5c01a..5db3c55aa8 100644
--- a/Source/Core/Core/HW/DSPHLE/UCodes/Zelda.cpp
+++ b/Source/Core/Core/HW/DSPHLE/UCodes/Zelda.cpp
@@ -1085,7 +1085,7 @@ void ZeldaAudioRenderer::ApplyReverb(bool post_rendering)
auto& memory = m_system.GetMemory();
for (u16 rpb_idx = 0; rpb_idx < 4; ++rpb_idx)
{
- ReverbPB rpb;
+ ReverbPB rpb{};
u32 rpb_addr = m_reverb_pb_base_addr + rpb_idx * sizeof(ReverbPB);
memory.CopyFromEmuSwapped(reinterpret_cast<u16*>(&rpb), rpb_addr, sizeof(ReverbPB));