commit 67ac4572948c65b71f1e3936c61719e6464d9ba4
parent 950ba89e94a6d1b3fdccf0ff14a49a2f3310b353
Author: fundamental <[email protected]>
Date: Sun, 5 Jan 2014 13:45:53 -0500
Fix Uninitialized Variable Warning
Diffstat:
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/Misc/Part.cpp b/src/Misc/Part.cpp
@@ -934,14 +934,12 @@ void Part::RunNote(unsigned int k)
for(unsigned type = 0; type < 3; ++type) {
//Select a note
- SynthNote **note;
+ SynthNote **note = NULL;
if(type == 0)
note = &partnote[k].kititem[item].adnote;
- else
- if(type == 1)
+ else if(type == 1)
note = &partnote[k].kititem[item].subnote;
- else
- if(type == 2)
+ else if(type == 2)
note = &partnote[k].kititem[item].padnote;
//Process if it exists