Skip to content

Core/Player: Fix MAX_TITLE_INDEX calculation for title mask#461

Open
gonzo1247 wants to merge 1 commit intoThe-Cataclysm-Preservation-Project:masterfrom
gonzo1247:title-fix
Open

Core/Player: Fix MAX_TITLE_INDEX calculation for title mask#461
gonzo1247 wants to merge 1 commit intoThe-Cataclysm-Preservation-Project:masterfrom
gonzo1247:title-fix

Conversation

@gonzo1247
Copy link
Contributor

Changes proposed:
Players were unable to select titles with a bit index greater than 31.

This was caused by an incorrect MAX_TITLE_INDEX calculation introduced when
the original macros were replaced with constexpr values. The calculation used
sizeof(uint64) instead of 64 bits, limiting the valid range to 32 instead of 256.

The title mask size calculation has been corrected.

Issues addressed: Fixes #
Players could not change titles if the title ID was greater than 31.
Regression introduced in commit:
c4f1f8d

Tests performed: (Does it build, tested in-game, etc)

  • Successfully built.
  • Verified in-game that titles above index 31 can now be selected and persist after relog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant