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.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc
index 9fa9e05cc6..ca737c6d78 100644
--- a/crawl-ref/source/itemname.cc
+++ b/crawl-ref/source/itemname.cc
@@ -2387,9 +2387,6 @@ bool is_useless_item(const item_def &item, bool temp)
case OBJ_POTIONS:
{
- if (!item_type_known(item))
- return (false);
-
// No potion is useless if it can be used for Evaporate.
if (player_knows_spell(SPELL_EVAPORATE))
return (false);
@@ -2398,6 +2395,9 @@ bool is_useless_item(const item_def &item, bool temp)
if (you.species == SP_MUMMY)
return (true);
+ if (!item_type_known(item))
+ return (false);
+
switch (item.sub_type)
{
case POT_BERSERK_RAGE: