mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-06-08 12:37:10 -04:00
Check Tracker - Fixes an issue where any time an item is removed the tracker would cause an application crash
This commit is contained in:
@@ -844,9 +844,9 @@ void DrawLocations() {
|
||||
// If the location has its scene flag set
|
||||
if (!inGame || (!checked && !skipped)) {
|
||||
// show it as unchecked
|
||||
if (!checked)
|
||||
if (!checked && elfound != checkedLocations.end())
|
||||
checkedLocations.erase(elfound);
|
||||
if (!skipped)
|
||||
if (!skipped && skfound != skippedLocations.end())
|
||||
skippedLocations.erase(skfound);
|
||||
} else if (skipped && ImGui::ArrowButton(std::to_string(locationIt.second.rc).c_str(), ImGuiDir_Left)) {
|
||||
if (skipped)
|
||||
|
||||
Reference in New Issue
Block a user