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(drops): prevent drop deletion if first slot is nil due to empty indexes #572

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

Qwerty1Verified
Copy link
Contributor

Description

This PR changes the items table for drops to overwrite the length operator meaning the table length will be checked appropriately if the index is unordered. This fixes drops being deleted if an item space isn't filled in order.

Checklist

  • I have personally loaded this code into an updated qbcore project and checked all of its functionality.
  • My code fits the style guidelines.
  • My PR fits the contribution guidelines.

@GhzGarage GhzGarage merged commit e8c6805 into qbcore-framework:main Sep 6, 2024
2 checks passed
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