We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What if rand() % spawns.Count() + 1 = spawns.Count()?
rand() % spawns.Count() + 1
spawns.Count()
CS2Fixes/src/commands.cpp
Lines 278 to 280 in bc2701f
Shouldn't it just be rand() % spawns.Count()?
rand() % spawns.Count()
The text was updated successfully, but these errors were encountered:
Yes that will indeed crash, will fix asap
Sorry, something went wrong.
62ca05a
No branches or pull requests
What if
rand() % spawns.Count() + 1
=spawns.Count()
?CS2Fixes/src/commands.cpp
Lines 278 to 280 in bc2701f
Shouldn't it just be
rand() % spawns.Count()
?The text was updated successfully, but these errors were encountered: