summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemname.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/itemname.cc')
-rw-r--r--crawl-ref/source/itemname.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc
index 008baf629b..1d8f48920a 100644
--- a/crawl-ref/source/itemname.cc
+++ b/crawl-ref/source/itemname.cc
@@ -2600,7 +2600,7 @@ bool is_useless_item(const item_def &item, bool temp)
case OBJ_POTIONS:
{
// No potion is useless if it can be used for Evaporate.
- if (player_knows_spell(SPELL_EVAPORATE))
+ if (you.has_spell(SPELL_EVAPORATE))
return (false);
// Apart from Evaporate, mummies can't use potions.