diff --git a/soh/soh/Enhancements/sfx-editor/SfxEditor.cpp b/soh/soh/Enhancements/sfx-editor/SfxEditor.cpp index 43d0534c4..f14b83b86 100644 --- a/soh/soh/Enhancements/sfx-editor/SfxEditor.cpp +++ b/soh/soh/Enhancements/sfx-editor/SfxEditor.cpp @@ -189,6 +189,10 @@ void Draw_SfxTab(const std::string& tabId, const std::map= MAX_AUTHENTIC_SEQID) { + continue; + } const std::string cvarKey = "gSfxEditor_" + sfxKey; CVar_SetS32(cvarKey.c_str(), defaultValue); } @@ -208,7 +212,8 @@ void Draw_SfxTab(const std::string& tabId, const std::map MAX_AUTHENTIC_SEQID) { + // Only save authentic sequence CVars + if (((seqType & SEQ_BGM_CUSTOM) || seqType == SEQ_FANFARE) && defaultValue >= MAX_AUTHENTIC_SEQID) { continue; } const int randomValue = values.back(); @@ -229,6 +234,7 @@ void Draw_SfxTab(const std::string& tabId, const std::map= MAX_AUTHENTIC_SEQID) { continue; }