summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-02-26 13:47:55 -0700
committerJared Adams <jaxad0127@gmail.com>2009-02-26 13:47:55 -0700
commit071b1c3126362967b0b6a837349b7c5e327574e9 (patch)
treefb24a1daeb6cd7a4afb777d50c790db2c107aa22
parent3008805eea4b972265597ba196ab05ce64c69965 (diff)
downloadmana-client-071b1c3126362967b0b6a837349b7c5e327574e9.tar.gz
mana-client-071b1c3126362967b0b6a837349b7c5e327574e9.tar.bz2
mana-client-071b1c3126362967b0b6a837349b7c5e327574e9.tar.xz
mana-client-071b1c3126362967b0b6a837349b7c5e327574e9.zip
Don't clear current NPC early
-rw-r--r--src/gui/npcintegerdialog.cpp1
-rw-r--r--src/gui/npclistdialog.cpp2
-rw-r--r--src/gui/npcstringdialog.cpp2
3 files changed, 0 insertions, 5 deletions
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()