From abd30c0c41a96826ee2ae38a19d5feadcaeefeef Mon Sep 17 00:00:00 2001 From: psperl Date: Sun, 16 Sep 2007 17:46:42 +0000 Subject: [PATCH] Smooth Preset fix. for loop index not initialized to 0. Doh git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@433 6778bc44-b910-0410-a7a0-be141de4315d --- src/projectM-engine/PresetMerge.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/projectM-engine/PresetMerge.cpp b/src/projectM-engine/PresetMerge.cpp index fc9ee47f4..01067fb83 100644 --- a/src/projectM-engine/PresetMerge.cpp +++ b/src/projectM-engine/PresetMerge.cpp @@ -76,7 +76,7 @@ void PresetMerger::MergePresets(PresetOutputs & A, PresetOutputs & B, double rat pos != A.customWaves.end(); ++pos) { (*pos)->a *= invratio; - for (int x; x < (*pos)->samples; x++) + for (int x=0; x < (*pos)->samples; x++) { (*pos)->a_mesh[x]= (*pos)->a_mesh[x]*invratio; } @@ -86,7 +86,7 @@ void PresetMerger::MergePresets(PresetOutputs & A, PresetOutputs & B, double rat pos != B.customWaves.end(); ++pos) { (*pos)->a *= ratio; - for (int x; x < (*pos)->samples; x++) + for (int x=0; x < (*pos)->samples; x++) { (*pos)->a_mesh[x]= (*pos)->a_mesh[x]*ratio; }