- fixed max. ammo display on AltHud.

This commit is contained in:
Christoph Oelckers 2018-12-03 23:33:53 +01:00
parent ae44b936eb
commit 9e70701e50

View file

@ -544,7 +544,7 @@ class AltHud ui
let inv = GetDefaultByType(type);
let AltIcon = inv.AltHUDIcon;
int maxammo = inv.MaxAmount;
int maxammo = ammoitem? ammoitem.MaxAmount : inv.MaxAmount;
let icon = !AltIcon.isNull()? AltIcon : inv.Icon;
if (!icon.isValid()) continue;