From 071b1c3126362967b0b6a837349b7c5e327574e9 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Thu, 26 Feb 2009 13:47:55 -0700 Subject: Don't clear current NPC early --- src/gui/npcintegerdialog.cpp | 1 - src/gui/npclistdialog.cpp | 2 -- src/gui/npcstringdialog.cpp | 2 -- 3 files changed, 5 deletions(-) (limited to 'src') diff --git a/src/gui/npcintegerdialog.cpp b/src/gui/npcintegerdialog.cpp index 9dc3660b..9778d790 100644 --- a/src/gui/npcintegerdialog.cpp +++ b/src/gui/npcintegerdialog.cpp @@ -119,7 +119,6 @@ void NpcIntegerDialog::action(const gcn::ActionEvent &event) outMsg.writeInt32(current_npc); outMsg.writeInt32(mValueField->getValue()); - current_npc = 0; mValueField->reset(); } } diff --git a/src/gui/npclistdialog.cpp b/src/gui/npclistdialog.cpp index 53d4f21f..f5479efc 100644 --- a/src/gui/npclistdialog.cpp +++ b/src/gui/npclistdialog.cpp @@ -128,8 +128,6 @@ void NpcListDialog::action(const gcn::ActionEvent &event) outMsg.writeInt16(CMSG_NPC_LIST_CHOICE); outMsg.writeInt32(current_npc); outMsg.writeInt8(choice); - - current_npc = 0; } } diff --git a/src/gui/npcstringdialog.cpp b/src/gui/npcstringdialog.cpp index fb3b43db..aec30826 100644 --- a/src/gui/npcstringdialog.cpp +++ b/src/gui/npcstringdialog.cpp @@ -88,8 +88,6 @@ void NpcStringDialog::action(const gcn::ActionEvent &event) outMsg.writeInt32(current_npc); outMsg.writeString(text, text.length()); outMsg.writeInt8(0); - - current_npc = 0; } bool NpcStringDialog::isInputFocused() -- cgit v1.2.3-70-g09d2