From 143074349edc3b4a87d064dad59d7c4b482d27d1 Mon Sep 17 00:00:00 2001 From: Patiga Date: Sun, 1 Nov 2020 23:04:33 +0100 Subject: [PATCH] Add m_PosEnv as index that must be offset when appended --- src/game/editor/layer_sounds.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/game/editor/layer_sounds.cpp b/src/game/editor/layer_sounds.cpp index 22e38ffe4..472617c7a 100644 --- a/src/game/editor/layer_sounds.cpp +++ b/src/game/editor/layer_sounds.cpp @@ -227,5 +227,8 @@ void CLayerSounds::ModifySoundIndex(INDEX_MODIFY_FUNC Func) void CLayerSounds::ModifyEnvelopeIndex(INDEX_MODIFY_FUNC Func) { for(int i = 0; i < m_lSources.size(); i++) + { Func(&m_lSources[i].m_SoundEnv); + Func(&m_lSources[i].m_PosEnv); + } }