fix excluded locations being removed if you haven't viewed the location tab (#2518)

This commit is contained in:
Adam Bird 2023-02-23 01:53:18 -05:00 committed by David Chavez
parent 3d30f1701a
commit 6e4b1aec2a
1 changed files with 3 additions and 0 deletions

View File

@ -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);