Skip to content

Fix lack of UAV backpacks in loot when there are no radio backpacks - #3943

Open
jaj22 wants to merge 1 commit into
official-antistasi-community:unstablefrom
jaj22:fix-lootDevice-no-radio
Open

Fix lack of UAV backpacks in loot when there are no radio backpacks#3943
jaj22 wants to merge 1 commit into
official-antistasi-community:unstablefrom
jaj22:fix-lootDevice-no-radio

Conversation

@jaj22

@jaj22 jaj22 commented Apr 23, 2026

Copy link
Copy Markdown
Collaborator

What type of PR is this.

  1. Bug
  2. Change
  3. Enhancement

What have you changed and why?

In #3730, code was added to balance the quantities of radio and UAV backpacks in loot crates. This worked a little too well and caused the array to be empty if there were no radio backpacks in the modset (eg. vanilla). This PR fixes the issue.

Please specify which Issue this PR Resolves.

closes #XXXX

Please verify the following and ensure all checks are completed.

  1. Have you loaded the mission in LAN host?
  2. Have you loaded the mission on a dedicated server?

Is further testing or are further changes required?

  1. No
  2. Yes (Please provide further detail below.)

How can the changes be tested?

Start campaign, check value of lootDevice.

@jaj22 jaj22 added this to the 3.11.2 milestone Apr 23, 2026
@jaj22 jaj22 added Bug Something isn't working Review pending labels Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working Review pending

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant