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 crash in onClientVehicleCollision #600

Merged
merged 3 commits into from
Oct 26, 2018

Conversation

FileEX
Copy link
Contributor

@FileEX FileEX commented Sep 26, 2018

Fixes #576 - Needs testing

Bug description
fixVehicle() doesn't appear to do a check on whether the vehicle provided is blown/exploded. This can obviously be avoided in Lua by checking with isVehicleBlown() - however it can cause client crashes if not checked.

Now if vehicle is blown, onClientVehicleCollision don't be call.

@botder botder added the bug Something isn't working label Sep 27, 2018
@botder botder self-assigned this Oct 26, 2018
@botder botder merged commit 961f7ed into multitheftauto:master Oct 26, 2018
@botder botder added this to the 1.5.7 milestone Oct 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fixVehicle() in onClientVehicleCollision crashes client if vehicle is blown
2 participants