From 5c1093ffa9fea3d979a720169e97ed31725e95c4 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Wed, 23 Feb 2005 23:46:23 +0000 Subject: Committed patch by Mra, which fixes multiple NPCs talks in one window and moves the action listener used with BuySellDialog into that class. --- src/gui/npc.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/npc.cpp') 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; } } -- cgit v1.2.3-70-g09d2