summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
authorWilliam McPherson <willmcpherson2@gmail.com>2019-12-26 01:37:21 +1100
committerAndreas Kling <awesomekling@gmail.com>2019-12-25 16:14:11 +0100
commitb3b522bae2e805fd91d8de86bfaff2eb5bab78eb (patch)
treeb94537be18d0e623e86c4df9d4188a9dd4f32c25 /Applications
parent2573c33ffe79d48d25991c0b1fb5fbb1a77c9fb8 (diff)
downloadserenity-b3b522bae2e805fd91d8de86bfaff2eb5bab78eb.zip
Piano: Initialize m_note_on[]
This was being read before initialization.
Diffstat (limited to 'Applications')
-rw-r--r--Applications/Piano/PianoWidget.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/Piano/PianoWidget.h b/Applications/Piano/PianoWidget.h
index 6b3437b781..57bbfc1c04 100644
--- a/Applications/Piano/PianoWidget.h
+++ b/Applications/Piano/PianoWidget.h
@@ -62,7 +62,7 @@ private:
#define note_count sizeof(note_frequency) / sizeof(double)
- u8 m_note_on[note_count];
+ u8 m_note_on[note_count] { 0 };
double m_power[note_count];
double m_sin_pos[note_count];
double m_square_pos[note_count];