diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-06-12 23:38:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-06-12 23:38:04 +0300 |
commit | d3af59b8eedae98a49367e2ac37f2ab1b79c0557 (patch) | |
tree | 5c004058a74022e2a1cb33d497b2533bf3e9b085 /src/net/tmwa | |
parent | 77a5341118e27572c9b9db90d42120c84d204d77 (diff) | |
download | mv-d3af59b8eedae98a49367e2ac37f2ab1b79c0557.tar.gz mv-d3af59b8eedae98a49367e2ac37f2ab1b79c0557.tar.bz2 mv-d3af59b8eedae98a49367e2ac37f2ab1b79c0557.tar.xz mv-d3af59b8eedae98a49367e2ac37f2ab1b79c0557.zip |
remove npc dialog wrapper.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/npchandler.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/net/tmwa/npchandler.cpp b/src/net/tmwa/npchandler.cpp index fa9647b9d..36eca01aa 100644 --- a/src/net/tmwa/npchandler.cpp +++ b/src/net/tmwa/npchandler.cpp @@ -132,7 +132,7 @@ void NpcHandler::closeDialog(const int npcId) const NpcDialogs::iterator it = mNpcDialogs.find(npcId); if (it != mNpcDialogs.end()) { - NpcDialog *const dialog = (*it).second.dialog; + NpcDialog *const dialog = (*it).second; if (dialog) dialog->close(); if (dialog == mDialog) @@ -236,14 +236,12 @@ int NpcHandler::getNpc(Net::MessageIn &msg, const bool haveLength) mDialog->saveCamera(); if (player_node) player_node->stopWalking(false); - Wrapper wrap; - wrap.dialog = mDialog; - mNpcDialogs[npcId] = wrap; + mNpcDialogs[npcId] = mDialog; } } else { - NpcDialog *const dialog = diag->second.dialog; + NpcDialog *const dialog = diag->second; if (mDialog && mDialog != dialog) mDialog->restoreCamera(); mDialog = dialog; |