summaryrefslogtreecommitdiff
path: root/src/gui/sell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/sell.cpp')
-rw-r--r--src/gui/sell.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp
index dad6af21..20a2a786 100644
--- a/src/gui/sell.cpp
+++ b/src/gui/sell.cpp
@@ -254,3 +254,10 @@ void SellDialog::updateButtonsAndLabels()
Units::formatCurrency(income).c_str(),
Units::formatCurrency(mPlayerMoney - income).c_str()));
}
+
+void SellDialog::logic()
+{
+ Window::logic();
+
+ if (!current_npc) setVisible(false);
+}