Manager record size and table size checks use the named constants
Prepare verified release / draft (push) Canceled after 0s
Prepare verified release / draft (push) Canceled after 0s
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:
1 parent
9daf649563
commit
7031f4ff02
44 files changed
+116
-115
No files matched your search
@@ -56,7 +56,7 @@ AchievementsState achievements_from_game(const GameState& game,const LeImage& ex
|
||||
size_t(owner.manager_slot)>=game.manager_teams.size()||owner.revision==UINT64_MAX||
|
||||
underlay.width!=320||underlay.height!=240||!game.texts)
|
||||
throw FormatError("achievements: invalid Source desk owner");
|
||||
const size_t base=size_t(owner.manager_slot)*0xb0c;
|
||||
const size_t base=size_t(owner.manager_slot)*kManagerRecordSize;
|
||||
if(base+0x556>game.manager_records.size())throw FormatError("achievements: truncated Source manager history");
|
||||
AchievementsState out;out.owner=owner;out.manager_slot=owner.manager_slot;out.underlay=underlay;
|
||||
out.season_count=std::clamp(game.season+1,1,50);out.selected_season=out.season_count-1;
|
||||
|
||||
Reference in new issue
Block a user