Browse Source

Silence EQ::Band::c1, c2 and c3 may be used uninitialized warnings.

Marcel Admiraal 5 years ago
parent
commit
d02143905f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      servers/audio/effects/eq.cpp

+ 1 - 0
servers/audio/effects/eq.cpp

@@ -125,6 +125,7 @@ void EQ::set_preset_band_mode(Preset p_preset) {
 	for (int i = 0; i < m_bands; i++) { \
 	for (int i = 0; i < m_bands; i++) { \
 		Band b;                         \
 		Band b;                         \
 		b.freq = bands[i];              \
 		b.freq = bands[i];              \
+		b.c1 = b.c2 = b.c3 = 0;         \
 		band.push_back(b);              \
 		band.push_back(b);              \
 	}
 	}