Add m_PosEnv as index that must be offset when appended

This commit is contained in:
Patiga 2020-11-01 23:04:33 +01:00
parent 1253215018
commit 143074349e

View file

@ -227,5 +227,8 @@ void CLayerSounds::ModifySoundIndex(INDEX_MODIFY_FUNC Func)
void CLayerSounds::ModifyEnvelopeIndex(INDEX_MODIFY_FUNC Func) void CLayerSounds::ModifyEnvelopeIndex(INDEX_MODIFY_FUNC Func)
{ {
for(int i = 0; i < m_lSources.size(); i++) for(int i = 0; i < m_lSources.size(); i++)
{
Func(&m_lSources[i].m_SoundEnv); Func(&m_lSources[i].m_SoundEnv);
Func(&m_lSources[i].m_PosEnv);
}
} }