Skip to content
This repository has been archived by the owner on Apr 14, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1011 from CombatExtendedRWMod/SelectedAmmo-ResetA…
Browse files Browse the repository at this point in the history
…mmoCount

Set selectedAmmo to correct value on spawned pawns
  • Loading branch information
zozilin authored Feb 22, 2020
2 parents 320b689 + 2906e2a commit 77a44f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/CombatExtended/CombatExtended/Comps/CompAmmoUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,7 @@ public void ResetAmmoCount(AmmoDef newAmmo = null)
if (newAmmo != null)
{
currentAmmoInt = newAmmo;
selectedAmmo = newAmmo;
}
curMagCountInt = Props.magazineSize;
}
Expand Down

0 comments on commit 77a44f9

Please sign in to comment.