From 523c9239668819844966097bd82445863d89103f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 29 Mar 2015 12:00:44 +0300 Subject: Fix typo in packet name CMSG_MOVE_FROM_STORAGE. --- src/net/eathena/inventoryhandler.cpp | 2 +- src/net/eathena/protocol.h | 2 +- src/net/tmwa/inventoryhandler.cpp | 2 +- src/net/tmwa/protocol.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 9de9d2141..278ca03bb 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -366,7 +366,7 @@ void InventoryHandler::moveItem2(const int source, { offset = STORAGE_OFFSET; if (destination == InventoryType::INVENTORY) - packet = CSMG_MOVE_FROM_STORAGE; + packet = CMSG_MOVE_FROM_STORAGE; else if (destination == InventoryType::CART) packet = CMSG_MOVE_FROM_STORAGE_TO_CART; } diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index cfe8927d4..d290e3a20 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -557,7 +557,7 @@ #define CMSG_PARTY_ALLOW_INVITES 0x02c8 #define CMSG_MOVE_TO_STORAGE 0x07ec /** Move item to storage */ -#define CSMG_MOVE_FROM_STORAGE 0x085b /** Remove item from storage */ +#define CMSG_MOVE_FROM_STORAGE 0x085b /** Remove item from storage */ #define CMSG_CLOSE_STORAGE 0x0193 /** Request storage close */ #define CMSG_MOVE_TO_CART 0x0126 diff --git a/src/net/tmwa/inventoryhandler.cpp b/src/net/tmwa/inventoryhandler.cpp index 962eed43c..7fedc5574 100644 --- a/src/net/tmwa/inventoryhandler.cpp +++ b/src/net/tmwa/inventoryhandler.cpp @@ -234,7 +234,7 @@ void InventoryHandler::moveItem2(const int source, const int slot, else if (source == InventoryType::STORAGE && destination == InventoryType::INVENTORY) { - createOutPacket(CSMG_MOVE_FROM_STORAGE); + createOutPacket(CMSG_MOVE_FROM_STORAGE); outMsg.writeInt16(static_cast(slot + STORAGE_OFFSET), "index"); outMsg.writeInt32(amount, "amount"); diff --git a/src/net/tmwa/protocol.h b/src/net/tmwa/protocol.h index 82ba472ab..388a49729 100644 --- a/src/net/tmwa/protocol.h +++ b/src/net/tmwa/protocol.h @@ -257,7 +257,7 @@ #define CMSG_PARTY_MESSAGE 0x0108 #define CMSG_MOVE_TO_STORAGE 0x00f3 /** Move item to storage */ -#define CSMG_MOVE_FROM_STORAGE 0x00f5 /** Remove item from storage */ +#define CMSG_MOVE_FROM_STORAGE 0x00f5 /** Remove item from storage */ #define CMSG_CLOSE_STORAGE 0x00f7 /** Request storage close */ #define CMSG_ADMIN_ANNOUNCE 0x0099 -- cgit v1.2.3-70-g09d2