summaryrefslogtreecommitdiff
path: root/src/monster2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/monster2.c')
-rw-r--r--src/monster2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/monster2.c b/src/monster2.c
index 0f9d1dc6..841a6428 100644
--- a/src/monster2.c
+++ b/src/monster2.c
@@ -59,9 +59,9 @@ void monster_check_experience(int m_idx, bool_ silent)
/* Gain melee power */
if (magik(30))
{
- int i = rand_int(3), try = 20;
+ int i = rand_int(3), tries = 20;
- while ((try--) && !m_ptr->blow[i].d_dice) i = rand_int(3);
+ while ((tries--) && !m_ptr->blow[i].d_dice) i = rand_int(3);
m_ptr->blow[i].d_dice++;
}