summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/strife/g_game.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/strife/g_game.c b/src/strife/g_game.c
index a2194747..8d074a1f 100644
--- a/src/strife/g_game.c
+++ b/src/strife/g_game.c
@@ -270,8 +270,10 @@ static boolean WeaponSelectable(weapontype_t weapon)
// Special rules for switching to alternate versions of weapons.
// These must match the weapon-switching rules in P_PlayerThink()
+ // haleyjd 20141024: same fix here as in P_PlayerThink for torpedo.
+
if (weapon == wp_torpedo
- && player->ammo[weaponinfo[am_cell].ammo] < 30)
+ && player->ammo[weaponinfo[wp_torpedo].ammo] < 30)
{
return false;
}