summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/newgame.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-12 20:16:52 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-12 20:16:52 +0000
commit48bd58131a16a98fd337325154a7c01819aafa96 (patch)
treeeb27136b6b3757a054561019c1dd4a18ceaff799 /crawl-ref/source/newgame.cc
parentdbef5aed8b483f0e573721601b95b3c997ac5320 (diff)
downloadcrawl-ref-48bd58131a16a98fd337325154a7c01819aafa96.tar.gz
crawl-ref-48bd58131a16a98fd337325154a7c01819aafa96.zip
Fix an error I accidentally introduced when tweaking the previous patch.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10663 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/newgame.cc')
-rw-r--r--crawl-ref/source/newgame.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/newgame.cc b/crawl-ref/source/newgame.cc
index f0b5a31540..d7c43687b4 100644
--- a/crawl-ref/source/newgame.cc
+++ b/crawl-ref/source/newgame.cc
@@ -3864,7 +3864,7 @@ static void _good_potion_or_scroll(int & slot)
if (you.is_undead == US_UNDEAD)
base_rand -= 3;
// No berserk rage for ghouls.
- else if (you.is_undead != US_SEMI_UNDEAD)
+ else if (you.is_undead && you.is_undead != US_SEMI_UNDEAD)
base_rand--;
you.inv[slot].quantity = 1;