Commit 501d07b2 authored by mercury233's avatar mercury233

fix selectable_cards location info didn't refresh correctly when...

fix selectable_cards location info didn't refresh correctly when EGET_SCROLL_BAR_CHANGED and cant_check_grave
parent ac2a919d
......@@ -907,8 +907,8 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
} else {
if (select_continuous)
myswprintf(formatBuffer, L"%ls", dataManager.unknown_string);
else if (cant_check_grave && selectable_cards[i]->location == LOCATION_GRAVE)
myswprintf(formatBuffer, L"%ls", dataManager.FormatLocation(selectable_cards[i]->location, 0));
else if (cant_check_grave && selectable_cards[i + pos]->location == LOCATION_GRAVE)
myswprintf(formatBuffer, L"%ls", dataManager.FormatLocation(selectable_cards[i + pos]->location, 0));
else if (selectable_cards[i + pos]->location == LOCATION_OVERLAY)
myswprintf(formatBuffer, L"%ls[%d](%d)",
dataManager.FormatLocation(selectable_cards[i + pos]->overlayTarget), selectable_cards[i + pos]->overlayTarget->sequence + 1, selectable_cards[i + pos]->sequence + 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment