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.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc
index 0f74bd14cb..bd5149d314 100644
--- a/crawl-ref/source/itemname.cc
+++ b/crawl-ref/source/itemname.cc
@@ -2471,8 +2471,8 @@ bool is_useless_item(const item_def &item, bool temp)
case RING_REGENERATION:
case RING_SUSTENANCE:
return (you.is_undead
- && (!temp || you.species == SP_VAMPIRE
- && you.hunger_state == HS_STARVING));
+ && (you.species != SP_VAMPIRE
+ || temp && you.hunger_state == HS_STARVING));
case RING_SEE_INVISIBLE:
return (player_mutation_level(MUT_ACUTE_VISION));