diff --git a/wadsrc/static/zscript/inventory/stateprovider.txt b/wadsrc/static/zscript/inventory/stateprovider.txt index 7ba48b844e..f26db87be2 100644 --- a/wadsrc/static/zscript/inventory/stateprovider.txt +++ b/wadsrc/static/zscript/inventory/stateprovider.txt @@ -317,7 +317,7 @@ class StateProvider : Inventory if (weapon != NULL) { if (MeleeSound) A_PlaySound(MeleeSound, CHAN_WEAPON); - else A_PlaySound(AttackSound, CHAN_WEAPON); + else A_PlaySound(weapon.AttackSound, CHAN_WEAPON); } if (!(flags & CPF_NOTURN))