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

fix random selection of message candidates #5603

Merged
merged 1 commit into from
Sep 16, 2023

Conversation

Goober5000
Copy link
Contributor

@Goober5000 Goober5000 commented Sep 16, 2023

The Random::next(low, high) function returns a value in [low, high]. This location should use the single-argument version, Random::next(int modulus), which returns a value in [0, modulus-1].

@Goober5000 Goober5000 added the fix A fix for bugs, not-a-bugs, and/or regressions. label Sep 16, 2023
@Goober5000 Goober5000 added this to the Release 23.2 milestone Sep 16, 2023
The `Random::next(low, high)` function returns a value in [low, high].  This location should use the single-argument version, `Random::next(int modulus)`, which returns a value in [0, modulus-1].
@Goober5000 Goober5000 merged commit be678c2 into scp-fs2open:master Sep 16, 2023
14 checks passed
@Goober5000 Goober5000 deleted the fix_message_candidates branch September 16, 2023 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix A fix for bugs, not-a-bugs, and/or regressions.
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

2 participants