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.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/buy.cpp b/src/gui/buy.cpp
index ca76b40f..059ba4e8 100644
--- a/src/gui/buy.cpp
+++ b/src/gui/buy.cpp
@@ -26,6 +26,7 @@
#include "slider.h"
#include "scrollarea.h"
#include "listbox.h"
+#include "../game.h"
#include <sstream>
@@ -140,9 +141,11 @@ void BuyDialog::action(const std::string& eventId)
}
}
setVisible(false);
+ current_npc = 0;
}
else if (eventId == "cancel") {
setVisible(false);
+ current_npc = 0;
}
}