diff options
-rw-r--r-- | src/gui/npcdialog.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp index 3d8da6d58..29d6383f9 100644 --- a/src/gui/npcdialog.cpp +++ b/src/gui/npcdialog.cpp @@ -350,7 +350,6 @@ void NpcDialog::action(const gcn::ActionEvent &event) const Item *const item = mInventory->getItem(0); std::string str; - int color = 1; if (item) { str = strprintf("%d,%d", item->getId(), @@ -370,8 +369,11 @@ void NpcDialog::action(const gcn::ActionEvent &event) default: break; } - // addText will auto remove the input layout - addText(strprintf("> \"%s\"", printText.c_str()), false); + if (mInputState != NPC_INPUT_ITEM) + { + // addText will auto remove the input layout + addText(strprintf("> \"%s\"", printText.c_str()), false); + } mNewText.clear(); } |