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 gunmods not being able to be removed #39389

Conversation

KorGgenT
Copy link
Member

@KorGgenT KorGgenT commented Apr 9, 2020

Summary

SUMMARY: Bugfixes "fix gunmods not being able to be removed"

Purpose of change

Fixes #39378

Describe the solution

The visitable interface skips over guns and magazines contents in visit_items, and has_item uses that interface to see if it has the item inside it. SO. if you're checking a gun if it has a gunmod, you can't use the visitable interface. So i made a static function that checks against item::gunmods() instead.

Testing

image

Additional context

@KorGgenT KorGgenT added the <Bugfix> This is a fix for a bug (or closes open issue) label Apr 9, 2020
@kevingranade kevingranade merged commit f0c3191 into CleverRaven:master Apr 9, 2020
@Qrox Qrox mentioned this pull request Apr 9, 2020
@KorGgenT KorGgenT deleted the fix-gunmods-not-being-able-to-be-reomved branch August 13, 2020 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to remove gunmods
2 participants