mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-03-02 05:25:41 +00:00
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:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user