Skip to content

Conversation

@G-Moris
Copy link
Contributor

@G-Moris G-Moris commented Jan 2, 2025

No description provided.

Copy link
Member

@FileEX FileEX left a comment

Choose a reason for hiding this comment

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

Since you're already on it, wouldn't it be better to rewrite this function using the new parser? It would definitely be more readable

@G-Moris
Copy link
Contributor Author

G-Moris commented Jan 2, 2025

Since you're already on it, wouldn't it be better to rewrite this function using the new parser? It would definitely be more readable

I was asked to fix this, I don't really understand the new style of lua functions, but I'll try.

@G-Moris
Copy link
Contributor Author

G-Moris commented Jan 2, 2025

I was asked to fix this, I don't really understand the new style of lua functions, but I'll try.

Most likely, it is better to do this in a separate PR, since I was asked to make these changes.

@tederis
Copy link
Member

tederis commented Jan 2, 2025

What does exactly this fixes? Or it's a refactor?

@G-Moris
Copy link
Contributor Author

G-Moris commented Jan 2, 2025

What does exactly this fixes? Or it's a refactor?

GetHandlingData essentially cannot produce a nullptr

@botder botder merged commit 711c35e into multitheftauto:master Jan 3, 2025
6 checks passed
@botder botder added this to the 1.6.1 milestone Jan 3, 2025
@botder botder added the refactor label Jan 3, 2025
MTABot pushed a commit that referenced this pull request Jan 3, 2025
711c35e Minor refactor for GetVehicleHandling (PR #3921)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants