Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
adding a move via drag-and-drop of a player icon (#618)
- Fixed a regression generating null pointer dereference errors when setting the outcome of
a node to the null outcome (#625, #647)
- Fixed a regression in calculating payoff quantities for mixed strategy profiles derived from
mixed behavior profiles (#616)


## [16.3.2] - unreleased
Expand Down
6 changes: 5 additions & 1 deletion src/games/stratmixed.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ template <class T> class MixedStrategyProfileRep {
return m_probs[m_profileIndex.at(p_strategy)];
}
/// Returns the probability the strategy is played
T &operator[](const GameStrategy &p_strategy) { return m_probs[m_profileIndex.at(p_strategy)]; }
T &operator[](const GameStrategy &p_strategy)
{
InvalidateCache();
return m_probs[m_profileIndex.at(p_strategy)];
}
/// Set the strategy of the corresponding player to a pure strategy
void SetStrategy(const GameStrategy &p_strategy)
{
Expand Down
Loading