From ae5423ad6837a04edcb491c8d277fde99888b201 Mon Sep 17 00:00:00 2001 From: obligaron Date: Sat, 19 Mar 2022 07:48:15 +0100 Subject: [PATCH] Enable identify on stash items --- Source/diablo.cpp | 7 +++++-- Source/items.cpp | 3 --- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/diablo.cpp b/Source/diablo.cpp index a29bd6f47..9786931e8 100644 --- a/Source/diablo.cpp +++ b/Source/diablo.cpp @@ -1812,8 +1812,11 @@ bool TryIconCurs() if (pcurs == CURSOR_IDENTIFY) { if (pcursinvitem != -1) CheckIdentify(myPlayer, pcursinvitem); - else - NewCursor(CURSOR_HAND); + else if (pcursstashitem != uint16_t(-1)) { + Item &item = Stash.stashList[pcursstashitem]; + item._iIdentified = true; + } + NewCursor(CURSOR_HAND); return true; } diff --git a/Source/items.cpp b/Source/items.cpp index 0c247aee5..fa58c5dfe 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -3629,9 +3629,6 @@ void CheckIdentify(Player &player, int cii) pi->_iIdentified = true; CalcPlrInv(player, true); - - if (&player == &Players[MyPlayerId]) - NewCursor(CURSOR_HAND); } void DoRepair(Player &player, int cii)