summaryrefslogtreecommitdiff
path: root/src/gui/buy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/buy.cpp')
-rw-r--r--src/gui/buy.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/buy.cpp b/src/gui/buy.cpp
index b31d48e1..c084c7c2 100644
--- a/src/gui/buy.cpp
+++ b/src/gui/buy.cpp
@@ -241,3 +241,10 @@ void BuyDialog::updateButtonsAndLabels()
Units::formatCurrency(price).c_str(),
Units::formatCurrency(mMoney - price).c_str()));
}
+
+void BuyDialog::logic()
+{
+ Window::logic();
+
+ if (!current_npc) setVisible(false);
+}