Arsenal - Fix FUNC(baseAttachment) returning non-CBA item modes#9916
Arsenal - Fix FUNC(baseAttachment) returning non-CBA item modes#9916
FUNC(baseAttachment) returning non-CBA item modes#9916Conversation
|
https://github.com/CBATeam/CBA_A3/blob/master/addons/accessory/fnc_switchAttachment.sqf#L48-L53 CBA ignores inherited values, so can we |
Do we want to adopt the same code as CBA then? |
|
Pretty sure this is good enough, up to you. |
My solution is quite a bit faster, but I'm not sure if they do the exact same thing. |
|
Result is the same, configProperties with no inheritance will result in empty array which just breaks that loop, same as exiting if inheritsFrom is not the property itself (technically it could be the case that some attachments in the chain inherit and others don't while this just checks the first, but CBA doesn't support that, and we end up checking everything in the chain anyway due to how this is called) |
When merged this pull request will:
IMPORTANT
Component - Add|Fix|Improve|Change|Make|Remove {changes}.