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
This commit is contained in:
psperl
2007-09-16 17:46:42 +00:00
parent 88cb631a75
commit abd30c0c41

View File

@ -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;
}