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

Prevent potential DBZ in vehicle smash code #37886

Merged
merged 1 commit into from
Feb 12, 2020

Conversation

ZhilkinSerg
Copy link
Contributor

Summary

SUMMARY: None

Purpose of change

Prevent possible division by zero.

Describe the solution

Change formula to avoid division by zero.

@ZhilkinSerg ZhilkinSerg added Vehicles Vehicles, parts, mechanics & interactions [C++] Changes (can be) made in C++. Previously named `Code` <Bugfix> This is a fix for a bug (or closes open issue) labels Feb 10, 2020
@ZhilkinSerg
Copy link
Contributor Author

@jeremyshannon
Copy link
Contributor

Aww, DBZ is "divide by zero?" Here I thought the bug was gonna be that some value was over 9000.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Vehicles Vehicles, parts, mechanics & interactions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants