Skip to content

fix(network): correctly map PlayerIndex to SlotIndex in CRC validation#189

Open
fbraz3 wants to merge 5 commits into
mainfrom
fix/crc-validation-bypass
Open

fix(network): correctly map PlayerIndex to SlotIndex in CRC validation#189
fbraz3 wants to merge 5 commits into
mainfrom
fix/crc-validation-bypass

Conversation

@fbraz3

@fbraz3 fbraz3 commented Jul 5, 2026

Copy link
Copy Markdown
Owner

fix(network): correctly map PlayerIndex to SlotIndex in CRC validation

A previous commit (14/06/2026) introduced a regression where
TheNetwork->isPlayerConnected was incorrectly passed a PlayerIndex
instead of a SlotIndex. This caused the loop to skip CRC validation
for all players, allowing matches to desync silently without triggering
the Mismatch UI.

This fix resolves the slot index dynamically by matching the player's
display name, restoring the intended behavior.

fbraz3 added 2 commits July 5, 2026 16:16
A previous commit (14/06/2026) introduced a regression where
TheNetwork->isPlayerConnected was incorrectly passed a PlayerIndex
instead of a SlotIndex. This caused the loop to skip CRC validation
for all players, allowing matches to desync silently without triggering
the Mismatch UI.

This fix resolves the slot index dynamically by matching the player's
display name, restoring the intended behavior.
@fbraz3 fbraz3 force-pushed the fix/crc-validation-bypass branch from 8ca70df to aaaf717 Compare July 5, 2026 21:38
@fbraz3 fbraz3 force-pushed the fix/crc-validation-bypass branch from a55c224 to abc3292 Compare July 5, 2026 22:21
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