mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
Add m_PosEnv as index that must be offset when appended
This commit is contained in:
parent
1253215018
commit
143074349e
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue