diff options
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r-- | crawl-ref/source/spells1.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc index e52f5fb894..98607bb14c 100644 --- a/crawl-ref/source/spells1.cc +++ b/crawl-ref/source/spells1.cc @@ -434,11 +434,8 @@ void identify(int power, int item_slot) item_slot = prompt_invent_item( "Identify which item?", MT_INVLIST, OSEL_UNIDENT, true, true, false ); } - if (item_slot == PROMPT_ABORT) - { - canned_msg( MSG_OK ); + if (prompt_failed(item_slot)) return; - } item_def& item(you.inv[item_slot]); |