From 2617332a4148356e0e29b035582324900cc7a5ff Mon Sep 17 00:00:00 2001 From: obligaron Date: Fri, 18 Mar 2022 21:44:26 +0100 Subject: [PATCH] Allow only one gold input panel to be open --- Source/inv.cpp | 2 ++ Source/qol/stash.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Source/inv.cpp b/Source/inv.cpp index 18909daee..5c0c52662 100644 --- a/Source/inv.cpp +++ b/Source/inv.cpp @@ -1108,6 +1108,8 @@ bool CanUseStaff(Item &staff, spell_id spell) void StartGoldDrop() { + CloseGoldWithdraw(); + initialDropGoldIndex = pcursinvitem; auto &myPlayer = Players[MyPlayerId]; diff --git a/Source/qol/stash.cpp b/Source/qol/stash.cpp index 076baa524..533cf0208 100644 --- a/Source/qol/stash.cpp +++ b/Source/qol/stash.cpp @@ -235,6 +235,8 @@ void CheckStashCut(Point cursorPosition, bool automaticMove, bool dropItem) void StartGoldWithdraw() { + CloseGoldDrop(); + InitialWithdrawGoldValue = Stash.gold; if (talkflag)