From eabd6f4801b2dd06fb36866fff7bab883a3c6c43 Mon Sep 17 00:00:00 2001 From: Theodore Turocy Date: Thu, 10 Sep 2026 18:45:41 +0100 Subject: [PATCH] Correct regression that was showing payoffs of 0 for null outcomes in extensive form. --- src/gui/efglayout.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/efglayout.cc b/src/gui/efglayout.cc index ea606276ab..c6c75c8050 100644 --- a/src/gui/efglayout.cc +++ b/src/gui/efglayout.cc @@ -339,7 +339,7 @@ void TreeLayout::DrawOutcome(wxDC &p_dc, const std::shared_ptr &p_ent bool p_noHints) const { const GameOutcome outcome = p_entry->m_node->GetOutcome(); - if (!outcome) { + if (outcome->IsNull()) { if (p_noHints) { return; } @@ -389,7 +389,7 @@ void TreeLayout::ComputeOutcomeGeometry(wxDC &p_dc, wxPoint point(p_entry->GetX() + nodeSize + 20, p_entry->GetY()); const GameOutcome outcome = p_entry->m_node->GetOutcome(); - if (!outcome) { + if (outcome->IsNull()) { int width, height; p_dc.SetFont(wxFont(9, wxFONTFAMILY_SWISS, wxFONTSTYLE_ITALIC, wxFONTWEIGHT_BOLD)); p_dc.GetTextExtent(wxT("(u)"), &width, &height);