Skip to content

Commit

Permalink
Fix: allow only 255 league tables, as 255 is the invalid id sentinel
Browse files Browse the repository at this point in the history
  • Loading branch information
rubidium42 committed Apr 20, 2024
1 parent c377c47 commit 1dfd0c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/league_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ bool IsValidLink(Link link);
typedef Pool<LeagueTableElement, LeagueTableElementID, 64, 64000> LeagueTableElementPool;
extern LeagueTableElementPool _league_table_element_pool;

typedef Pool<LeagueTable, LeagueTableID, 4, 256> LeagueTablePool;
typedef Pool<LeagueTable, LeagueTableID, 4, 255> LeagueTablePool;
extern LeagueTablePool _league_table_pool;


Expand Down

0 comments on commit 1dfd0c1

Please sign in to comment.