summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ghost.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/ghost.cc')
-rw-r--r--crawl-ref/source/ghost.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/ghost.cc b/crawl-ref/source/ghost.cc
index 5322114bc9..4682d7bd20 100644
--- a/crawl-ref/source/ghost.cc
+++ b/crawl-ref/source/ghost.cc
@@ -350,7 +350,8 @@ void ghost_demon::init_player_ghost()
job = you.char_class;
// Ghosts can't worship good gods.
- religion = is_good_god(you.religion) ? GOD_NO_GOD : you.religion;
+ if (!is_good_god(you.religion))
+ religion = you.religion;
best_skill = ::best_skill(SK_FIGHTING, (NUM_SKILLS - 1), 99);
best_skill_level = you.skills[best_skill];