Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check before sending to prevent crash because of #3866 #3883

Closed
wants to merge 2 commits into from

Conversation

Nico8340
Copy link
Contributor

Checks if the player exists and only then performs the next check which applies to the BitStream version.
Closes #3882.

Checks if the player exists and only then performs the next check which applies to the BitStream version
@TheNormalnij
Copy link
Member

won't work

Comment on lines -10865 to -10869
if (pPlayer->CanBitStream(eBitStreamVersion::FixSyncerDistance))
if (pPlayer)
{
BitStream.pBitStream->Write(g_TickRateSettings.iPedSyncerDistance);
BitStream.pBitStream->Write(g_TickRateSettings.iUnoccupiedVehicleSyncerDistance);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need min client version check here.
The new client always expects all data.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, thanks for reporting the issue, but could you please elaborate on it and how exactly it should be solved?

@Nico8340 Nico8340 closed this Dec 15, 2024
@Nico8340 Nico8340 deleted the cleanup/3866 branch December 15, 2024 23:40
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.

setServerConfigSetting crashes on latest nightly
2 participants