Patch: Fix bug causing the UI to show the wrong place value

This commit is contained in:
chaoticgd 2025-12-15 18:27:18 +00:00 committed by Ty
parent d30a7fb991
commit 5c123f3183

View File

@ -553,7 +553,7 @@ void Patch::ExtractPatchInfo(std::vector<PatchInfo>* dst, const std::string& pna
(*num_unlabelled_patches)++; (*num_unlabelled_patches)++;
// Try to extract the place value of the patch lines so we can // Try to extract the place value of the patch lines so we can
// display them in the GUI if they all match. TODO: Don't duplicate // display it in the GUI if they all match. TODO: Don't duplicate
// all this parsing logic twice. // all this parsing logic twice.
if (unknown_place) if (unknown_place)
continue; continue;
@ -571,6 +571,7 @@ void Patch::ExtractPatchInfo(std::vector<PatchInfo>* dst, const std::string& pna
// place values. // place values.
current_patch.place = std::nullopt; current_patch.place = std::nullopt;
unknown_place = true; unknown_place = true;
continue;
} }
current_patch.place = place; current_patch.place = place;