summaryrefslogtreecommitdiff
path: root/src/net/eathena/inventoryhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-22 21:10:55 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-22 21:11:29 +0300
commit1e7765d68db49cae92d30f946c2039c37ee9a3e1 (patch)
tree838f45a9a27faae1280d691810d8919f55829d55 /src/net/eathena/inventoryhandler.cpp
parent1ee562da80ee76787823f5e18c9463c05e2bb524 (diff)
downloadmanaverse-1e7765d68db49cae92d30f946c2039c37ee9a3e1.tar.gz
manaverse-1e7765d68db49cae92d30f946c2039c37ee9a3e1.tar.bz2
manaverse-1e7765d68db49cae92d30f946c2039c37ee9a3e1.tar.xz
manaverse-1e7765d68db49cae92d30f946c2039c37ee9a3e1.zip
eathena: reset menu after selecting egg.
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r--src/net/eathena/inventoryhandler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp
index 7717586f3..c028a472e 100644
--- a/src/net/eathena/inventoryhandler.cpp
+++ b/src/net/eathena/inventoryhandler.cpp
@@ -32,6 +32,7 @@
#include "net/net.h"
#include "net/serverfeatures.h"
+#include "net/eathena/menu.h"
#include "net/eathena/messageout.h"
#include "net/eathena/protocol.h"
@@ -594,6 +595,7 @@ void InventoryHandler::selectEgg(const Item *const item) const
createOutPacket(CMSG_PET_SELECT_EGG);
outMsg.writeInt16(static_cast<int16_t>(
item->getInvIndex() + INVENTORY_OFFSET), "index");
+ menu = MenuType::Unknown;
}
} // namespace EAthena