From 942a2a13a9bbe4672247b37e58a53abfc4ca4db5 Mon Sep 17 00:00:00 2001 From: haranp Date: Thu, 29 Jan 2009 12:57:33 +0000 Subject: 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 --- crawl-ref/source/spl-mis.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/spl-mis.cc') 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(pot_eff), pot_pow, false); + potion_effect(static_cast(pot_eff), pot_pow, false, false); return; } -- cgit v1.2.3-54-g00ecf