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

Rearm - Fix vehicles failing rearm due to case differences #7609

Merged
merged 2 commits into from Mar 20, 2020

Conversation

redbery
Copy link
Contributor

@redbery redbery commented Mar 20, 2020

When merged this pull request will:

  • Remove case sensitivity from class check in getTurretMagazineAmmo

Currently the check in getTurretMagazineAmmo compares the class used in cfgVehicles' magazines array (within the turret) to the config name in cfgMagazines (returned by magazinesAllTurrets). In some cases developers have not used the same capitalization in both of these places. Within most systems this is not a problem as config classes are not case sensitive, but in the case of getTurretMagazineAmmo it means the function fails leading to a failure of the rearm action.

…ses are too (should fix rearm bug on multiple vehicles)
@mharis001 mharis001 added the kind/bug-fix Release Notes: **FIXED:** label Mar 20, 2020
@mharis001 mharis001 added this to the 3.13.2 milestone Mar 20, 2020
@redbery
Copy link
Contributor Author

redbery commented Mar 20, 2020

This should fix #6928

Co-Authored-By: mharis001 <34453221+mharis001@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug-fix Release Notes: **FIXED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants