aboutsummaryrefslogtreecommitdiff
path: root/src/magic.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/magic.cc')
-rw-r--r--src/magic.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/magic.cc b/src/magic.cc
index a47c730..8c14634 100644
--- a/src/magic.cc
+++ b/src/magic.cc
@@ -2904,9 +2904,7 @@ void ChangeProfession(TCreature *Actor, const char *Param){
return;
}
- // NOTE(fusion): Using the value 10 with `TPlayer::SetProfession` will
- // cause the player to be promoted.
- ((TPlayer*)Actor)->SetProfession(10);
+ ((TPlayer*)Actor)->SetProfession(PROFESSION_PROMOTION);
}else{
return;
}