mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-29 04:42:18 -05: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:
parent
e5f1114c06
commit
48085f0f48
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user