diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-29 12:57:33 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-29 12:57:33 +0000 |
commit | 942a2a13a9bbe4672247b37e58a53abfc4ca4db5 (patch) | |
tree | ad0535ec1aae75b8898eaa74b29836d53a2e157b /crawl-ref/source/spl-mis.cc | |
parent | e5713cc0c97db9275c105a0a5a9e76c738fd0d25 (diff) | |
download | crawl-ref-942a2a13a9bbe4672247b37e58a53abfc4ca4db5.tar.gz crawl-ref-942a2a13a9bbe4672247b37e58a53abfc4ca4db5.zip |
Clean up potion effects as per [2544231]; get rid of the "power == 40 means
it's a potion" hack.
Fix security issue in dumping code (never dump a string without using %s.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8846 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-mis.cc')
-rw-r--r-- | crawl-ref/source/spl-mis.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-mis.cc b/crawl-ref/source/spl-mis.cc index 133e460037..3ba48c3c87 100644 --- a/crawl-ref/source/spl-mis.cc +++ b/crawl-ref/source/spl-mis.cc @@ -594,7 +594,7 @@ void MiscastEffect::_potion_effect(int pot_eff, int pot_pow) { if (target->atype() == ACT_PLAYER) { - potion_effect(static_cast<potion_type>(pot_eff), pot_pow, false); + potion_effect(static_cast<potion_type>(pot_eff), pot_pow, false, false); return; } |