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

Commit

Permalink
Set selectedAmmo to correct value on spawned pawns
Browse files Browse the repository at this point in the history
Without this change, the ammo gizmo displays the default ammo on spawned pawns.
  • Loading branch information
Alicecomma authored Feb 19, 2020
1 parent 04f1c91 commit 2906e2a
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 @@ -486,6 +486,7 @@ public void ResetAmmoCount(AmmoDef newAmmo = null)
if (newAmmo != null)
{
currentAmmoInt = newAmmo;
selectedAmmo = newAmmo;
}
curMagCountInt = Props.magazineSize;
}
Expand Down

0 comments on commit 2906e2a

Please sign in to comment.