From 6e4b1aec2a6cfeb486b3bd801996302fd90b6dee Mon Sep 17 00:00:00 2001 From: Adam Bird Date: Thu, 23 Feb 2023 01:53:18 -0500 Subject: [PATCH] fix excluded locations being removed if you haven't viewed the location tab (#2518) --- soh/soh/Enhancements/randomizer/randomizer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/soh/soh/Enhancements/randomizer/randomizer.cpp b/soh/soh/Enhancements/randomizer/randomizer.cpp index f5bb7d9d1..080c5d1df 100644 --- a/soh/soh/Enhancements/randomizer/randomizer.cpp +++ b/soh/soh/Enhancements/randomizer/randomizer.cpp @@ -2950,6 +2950,9 @@ void GenerateRandomizerImgui(std::string seed = "") { excludedLocations.insert((RandomizerCheck)std::stoi(excludedLocationString)); } + // Update the visibilitiy before removing conflicting excludes (in case the locations tab wasn't viewed) + RandomizerCheckObjects::UpdateImGuiVisibility(); + // Remove excludes for locations that are no longer allowed to be excluded for (auto [randomizerCheck, rcObject] : RandomizerCheckObjects::GetAllRCObjects()) { auto elfound = excludedLocations.find(rcObject.rc);