From fcd6eb9204fe9171420f3f406a33e16f35c1d993 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 5 Nov 2026 10:25:44 +0100 Subject: [PATCH] Club information may enter the club on every redraw The table's club information (TeamInfo) enters the club again on each redraw: view toggle, statistics, player card. The session required exactly one entry and discarded the whole visit otherwise, also the Nein/Radio/Video setting made in it, so a computer match could not be set to Video. One entry is now the minimum. Checked with a probe on a real savegame: table, club, two entries and Video leave the category set. Refs #75, #77. Co-Authored-By: Claude Sonnet 5.5 --- src/app/career_session.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/career_session.cpp b/src/app/career_session.cpp index 6a0573c..3439105 100644 --- a/src/app/career_session.cpp +++ b/src/app/career_session.cpp @@ -2267,7 +2267,10 @@ std::optional CareerSession::dispatch_family_table_team_i before.family==after.family&&before.next_family_id==after.next_family_id&& before.next_strengths_scope==after.next_strengths_scope&& !before.strengths&&!after.strengths&&!before.pairings&&!after.pairings; - if(!live_unchanged||!accepted||(poach_selection?entry_calls<1:entry_calls!=1)) + // The club information enters the club again on every redraw (view toggle, statistics, player + // card), so one entry is the minimum; requiring exactly one threw away the whole visit, also the + // Nein/Radio/Video setting made in it. + if(!live_unchanged||!accepted||entry_calls<1) throw FormatError("league family: TeamInfo presenter changed owner or did not enter the selected club"); const size_t record=size_t(id.manager)*0xb0c; if(next.date!=g_.date||next.manager_teams!=g_.manager_teams||