diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-02-23 23:46:23 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-02-23 23:46:23 +0000 |
commit | 5c1093ffa9fea3d979a720169e97ed31725e95c4 (patch) | |
tree | 3f40c4000c2f0317e12640eb818a781c3a892497 /src/gui/sell.cpp | |
parent | 1fcefe616a39c2e572b8078c5c51c8e81a59c487 (diff) | |
download | mana-5c1093ffa9fea3d979a720169e97ed31725e95c4.tar.gz mana-5c1093ffa9fea3d979a720169e97ed31725e95c4.tar.bz2 mana-5c1093ffa9fea3d979a720169e97ed31725e95c4.tar.xz mana-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/sell.cpp')
-rw-r--r-- | src/gui/sell.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp index b914d814..d8e6eb02 100644 --- a/src/gui/sell.cpp +++ b/src/gui/sell.cpp @@ -27,6 +27,7 @@ #include "scrollarea.h" #include "listbox.h" #include "../graphic/graphic.h" +#include "../game.h" #include <sstream> @@ -132,9 +133,11 @@ void SellDialog::action(const std::string& eventId) } } setVisible(false); + current_npc = 0; } else if (eventId == "cancel") { setVisible(false); + current_npc = 0; } } |