diff options
Diffstat (limited to 'src/heretic/p_inter.c')
-rw-r--r-- | src/heretic/p_inter.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/heretic/p_inter.c b/src/heretic/p_inter.c index 5e65fb5c..85ee381a 100644 --- a/src/heretic/p_inter.c +++ b/src/heretic/p_inter.c @@ -1162,7 +1162,11 @@ void P_AutoUseHealth(player_t * player, int saveHealth) int superCount; int superSlot; - normalCount = superCount = 0; + normalCount = 0; + superCount = 0; + normalSlot = 0; + superSlot = 0; + for (i = 0; i < player->inventorySlotNum; i++) { if (player->inventory[i].type == arti_health) |