From 5a23da4ce06b7d5d34859bf7e33dd063a7dd941c Mon Sep 17 00:00:00 2001 From: Malkierian Date: Thu, 17 Oct 2024 18:41:38 -0700 Subject: [PATCH] Make ConfigUpdaterV2 use CVarClearBlock instead of manually scanning. (#4435) --- soh/soh/config/ConfigUpdaters.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/soh/soh/config/ConfigUpdaters.cpp b/soh/soh/config/ConfigUpdaters.cpp index 36ac355bf..8415c23e0 100644 --- a/soh/soh/config/ConfigUpdaters.cpp +++ b/soh/soh/config/ConfigUpdaters.cpp @@ -66,9 +66,7 @@ namespace SOH { } void ConfigVersion2Updater::Update(Ship::Config* conf) { - for (auto seq : AudioCollection::Instance->GetAllSequences()) { - CVarClear(std::string("gAudioEditor.ReplacedSequences." + seq.second.sfxKey).c_str()); - } + CVarClearBlock("gAudioEditor.ReplacedSequences"); } void ConfigVersion3Updater::Update(Ship::Config* conf) {