Check Tracker - Fixes an issue where any time an item is removed the tracker would cause an application crash

This commit is contained in:
sonoftunk 2022-11-14 18:55:57 -05:00
parent e5f1114c06
commit 48085f0f48

View File

@ -844,9 +844,9 @@ void DrawLocations() {
// If the location has its scene flag set // If the location has its scene flag set
if (!inGame || (!checked && !skipped)) { if (!inGame || (!checked && !skipped)) {
// show it as unchecked // show it as unchecked
if (!checked) if (!checked && elfound != checkedLocations.end())
checkedLocations.erase(elfound); checkedLocations.erase(elfound);
if (!skipped) if (!skipped && skfound != skippedLocations.end())
skippedLocations.erase(skfound); skippedLocations.erase(skfound);
} else if (skipped && ImGui::ArrowButton(std::to_string(locationIt.second.rc).c_str(), ImGuiDir_Left)) { } else if (skipped && ImGui::ArrowButton(std::to_string(locationIt.second.rc).c_str(), ImGuiDir_Left)) {
if (skipped) if (skipped)