summaryrefslogtreecommitdiff
path: root/src/gui/buy.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-23 23:46:23 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-23 23:46:23 +0000
commit5c1093ffa9fea3d979a720169e97ed31725e95c4 (patch)
tree3f40c4000c2f0317e12640eb818a781c3a892497 /src/gui/buy.cpp
parent1fcefe616a39c2e572b8078c5c51c8e81a59c487 (diff)
downloadmana-client-5c1093ffa9fea3d979a720169e97ed31725e95c4.tar.gz
mana-client-5c1093ffa9fea3d979a720169e97ed31725e95c4.tar.bz2
mana-client-5c1093ffa9fea3d979a720169e97ed31725e95c4.tar.xz
mana-client-5c1093ffa9fea3d979a720169e97ed31725e95c4.zip
Committed patch by Mra, which fixes multiple NPCs talks in one window and
moves the action listener used with BuySellDialog into that class.
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;
}
}