From 2906e2a3c2ef0139aed131d4e70d9753b8c48de2 Mon Sep 17 00:00:00 2001 From: Alicecomma Date: Thu, 20 Feb 2020 00:00:41 +0100 Subject: [PATCH] Set selectedAmmo to correct value on spawned pawns Without this change, the ammo gizmo displays the default ammo on spawned pawns. --- Source/CombatExtended/CombatExtended/Comps/CompAmmoUser.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/CombatExtended/CombatExtended/Comps/CompAmmoUser.cs b/Source/CombatExtended/CombatExtended/Comps/CompAmmoUser.cs index 4dd1189c40..ca47be61ff 100644 --- a/Source/CombatExtended/CombatExtended/Comps/CompAmmoUser.cs +++ b/Source/CombatExtended/CombatExtended/Comps/CompAmmoUser.cs @@ -486,6 +486,7 @@ public void ResetAmmoCount(AmmoDef newAmmo = null) if (newAmmo != null) { currentAmmoInt = newAmmo; + selectedAmmo = newAmmo; } curMagCountInt = Props.magazineSize; }