Skip to content

Commit c4eeb37

Browse files
Correct regression in restricting a StrategySupportProfile. (#757)
This corrects the implementation of StrategySupportProfile::RestrictTo(); the previous implementation was failing to set the (singleton) strategy list. --------- Co-authored-by: Theodore Turocy <ted.turocy@gmail.com>
1 parent 3c052b1 commit c4eeb37

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/games/stratspt.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ class StrategySupportProfile {
156156
const int digit = p_strategy->GetNumber() - 1;
157157
StrategySupportProfile restricted(*this);
158158
restricted.m_strategyDigits.m_allowedDigits[player_index].assign(1, digit);
159+
restricted.m_support.at(player) = {p_strategy};
159160
return restricted;
160161
}
161162
//@}

0 commit comments

Comments
 (0)