summaryrefslogtreecommitdiff
path: root/src/q_rand.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/q_rand.cc')
-rw-r--r--src/q_rand.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/q_rand.cc b/src/q_rand.cc
index 0fa89f30..4dabeacc 100644
--- a/src/q_rand.cc
+++ b/src/q_rand.cc
@@ -355,7 +355,7 @@ static void hero_death(s32b m_idx, s32b r_idx)
m_allow_special[test_monster_name("Adventurer")] = FALSE;
if (m_idx)
{
- m_list[m_idx].exp = MONSTER_EXP(1 + (dun_level * 3 / 2));
+ m_list[m_idx].exp = monster_exp(1 + (dun_level * 3 / 2));
m_list[m_idx].status = MSTATUS_COMPANION;
monster_check_experience(m_idx, TRUE);
}