diff options
-rw-r--r-- | src/net/ea/npcrecv.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/net/ea/npcrecv.cpp b/src/net/ea/npcrecv.cpp index ad3a6da10..047d9ca50 100644 --- a/src/net/ea/npcrecv.cpp +++ b/src/net/ea/npcrecv.cpp @@ -211,6 +211,20 @@ void NpcRecv::processNpcCommand(Net::MessageIn &msg) mDialog->itemCraftRequest(invSize); break; } + case 14: + { + const NpcDialogs::iterator it = NpcDialog::mNpcDialogs.find(npcId); + if (it != NpcDialog::mNpcDialogs.end()) + { + NpcDialog *const dialog = (*it).second; + if (dialog) + dialog->close(); + if (dialog == Ea::NpcRecv::mDialog) + Ea::NpcRecv::mDialog = nullptr; + NpcDialog::mNpcDialogs.erase(it); + } + break; + } default: UNIMPLIMENTEDPACKETFIELD(cmd); break; |