diff options
Diffstat (limited to 'src/gui/npc_text.cpp')
-rw-r--r-- | src/gui/npc_text.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/gui/npc_text.cpp b/src/gui/npc_text.cpp index 9896f08e..2e0b0837 100644 --- a/src/gui/npc_text.cpp +++ b/src/gui/npc_text.cpp @@ -80,10 +80,13 @@ NpcTextDialog::addText(const std::string &text) void NpcTextDialog::action(const std::string& eventId) { - MessageOut outMsg; - outMsg.writeShort(CMSG_NPC_NEXT_REQUEST); - outMsg.writeLong(current_npc); - setText(""); - setVisible(false); - current_npc = 0; + if (eventId == "ok") + { + MessageOut outMsg; + outMsg.writeShort(CMSG_NPC_NEXT_REQUEST); + outMsg.writeLong(current_npc); + setText(""); + setVisible(false); + current_npc = 0; + } } |