@@ -58,7 +58,7 @@ void gbtBehavProfileList::OnLabelClick(wxSheetEvent &p_event)
5858 else {
5959 // Clicking on an action column sets the selected node to the first
6060 // member of that information set.
61- Gambit::GameAction action = m_doc->GetGame ()-> GetAction (p_event.GetCol () + 1 );
61+ Gambit::GameAction action = m_doc->GetAction (p_event.GetCol () + 1 );
6262 m_doc->SetSelectNode (action->GetInfoset ()->GetMember (1 ));
6363 }
6464}
@@ -74,7 +74,7 @@ wxString gbtBehavProfileList::GetCellValue(const wxSheetCoords &p_coords)
7474 return wxString::Format (wxT (" %d" ), p_coords.GetRow () + 1 );
7575 }
7676 else if (IsColLabelCell (p_coords)) {
77- Gambit::GameAction action = m_doc->GetGame ()-> GetAction (p_coords.GetCol () + 1 );
77+ Gambit::GameAction action = m_doc->GetAction (p_coords.GetCol () + 1 );
7878 return (wxString::Format (wxT (" %d: " ), action->GetInfoset ()->GetNumber ()) +
7979 wxString (action->GetLabel ().c_str (), *wxConvCurrent));
8080 }
@@ -88,7 +88,7 @@ wxString gbtBehavProfileList::GetCellValue(const wxSheetCoords &p_coords)
8888
8989static wxColour GetPlayerColor (gbtGameDocument *p_doc, int p_index)
9090{
91- Gambit::GameAction action = p_doc->GetGame ()-> GetAction (p_index + 1 );
91+ Gambit::GameAction action = p_doc->GetAction (p_index + 1 );
9292 return p_doc->GetStyle ().GetPlayerColor (action->GetInfoset ()->GetPlayer ()->GetNumber ());
9393}
9494
@@ -136,7 +136,7 @@ wxSheetCellAttr gbtBehavProfileList::GetAttr(const wxSheetCoords &p_coords, wxSh
136136 attr.SetRenderer (wxSheetCellRenderer (new gbtRationalRendererRefData ()));
137137
138138 try {
139- Gambit::GameAction action = m_doc->GetGame ()-> GetAction (p_coords.GetCol () + 1 );
139+ Gambit::GameAction action = m_doc->GetAction (p_coords.GetCol () + 1 );
140140 attr.SetForegroundColour (
141141 m_doc->GetStyle ().GetPlayerColor (action->GetInfoset ()->GetPlayer ()->GetNumber ()));
142142 if (action->GetInfoset ()->GetNumber () % 2 == 0 ) {
0 commit comments