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: flip ternary #143

Closed
wants to merge 1 commit into from
Closed

fix: flip ternary #143

wants to merge 1 commit into from

Conversation

Frowmza
Copy link
Contributor

@Frowmza Frowmza commented Oct 3, 2024

Description

GetVehiclePedIsIn can be 0 and we can get ped type entity instead

Checklist

  • I have personally loaded this code into an updated Qbox project and checked all of its functionality.
  • My pull request fits the contribution guidelines & code conventions.

GetVehiclePedIsIn can be 0 and we can get ped entity type instead
@D4isDAVID
Copy link
Member

0 is not a falsy value in Lua.

@Frowmza
Copy link
Contributor Author

Frowmza commented Oct 3, 2024

Interesting and weird, i remember ternary always tricking me with 0 value and skip to the next statement

@Frowmza Frowmza closed this Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants