Manager record size and table size checks use the named constants
Prepare verified release / draft (push) Waiting to run

108 products of the form size_t(x) * 0xb0c read kManagerRecordSize (the type of
the product is unchanged). The career start and the pairings check their table
sizes against the world layout instead of 168, 138 and 9.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Fable 5.2 committed 2026-11-12 22:37:17 +01:00
1 parent 9daf649563
commit 7031f4ff02
44 files changed
+116 -115

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ bool legacy_academy(const GameState& g, int manager) {
return value == 1500000 || value == 1000000 || value == 580000 || value == 280000;
}
uint32_t academy_paid(const GameState& g, int manager) {
const auto at = size_t(manager) * 0xb0c + 0x880;
const auto at = size_t(manager) * kManagerRecordSize + 0x880;
return uint32_t(g.manager_records.at(at)) | uint32_t(g.manager_records.at(at + 1)) << 8 |
uint32_t(g.manager_records.at(at + 2)) << 16 | uint32_t(g.manager_records.at(at + 3)) << 24;
}