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/npc.cpp | |
parent | 1fcefe616a39c2e572b8078c5c51c8e81a59c487 (diff) | |
download | mana-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/npc.cpp')
-rw-r--r-- | src/gui/npc.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/npc.cpp b/src/gui/npc.cpp index 4706112b..4049b061 100644 --- a/src/gui/npc.cpp +++ b/src/gui/npc.cpp @@ -108,7 +108,9 @@ void NpcListDialog::action(const std::string& eventId) WFIFOB(6) = net_b_value(selectedIndex + 1); WFIFOSET(7); setVisible(false); + current_npc = 0; reset(); + } } else if (eventId == "cancel") { @@ -119,5 +121,6 @@ void NpcListDialog::action(const std::string& eventId) WFIFOSET(7); setVisible(false); reset(); + current_npc = 0; } } |