diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-10-16 21:18:11 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-10-16 21:18:11 +0000 |
commit | d3175115354bb2417f01877a96d0068e2f2c875d (patch) | |
tree | 3fe6dde2b7922eb12bc376687ae18a59971d908e /src/gui/buy.cpp | |
parent | 43a80fa64acb7f02cf5305b4a3d2ef6040b4b8c9 (diff) | |
download | mana-d3175115354bb2417f01877a96d0068e2f2c875d.tar.gz mana-d3175115354bb2417f01877a96d0068e2f2c875d.tar.bz2 mana-d3175115354bb2417f01877a96d0068e2f2c875d.tar.xz mana-d3175115354bb2417f01877a96d0068e2f2c875d.zip |
Rename {read,write}{Byte,Short,Long} to {read,write}Int{8,16,32}.
Diffstat (limited to 'src/gui/buy.cpp')
-rw-r--r-- | src/gui/buy.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/buy.cpp b/src/gui/buy.cpp index 185709d1..f918d45a 100644 --- a/src/gui/buy.cpp +++ b/src/gui/buy.cpp @@ -237,10 +237,10 @@ void BuyDialog::action(const std::string& eventId) else if (eventId == "buy" && (m_amountItems > 0 && m_amountItems <= m_maxItems)) { MessageOut outMsg; - outMsg.writeShort(CMSG_NPC_BUY_REQUEST); - outMsg.writeShort(8); - outMsg.writeShort(m_amountItems); - outMsg.writeShort(shopInventory[selectedItem].id); + outMsg.writeInt16(CMSG_NPC_BUY_REQUEST); + outMsg.writeInt16(8); + outMsg.writeInt16(m_amountItems); + outMsg.writeInt16(shopInventory[selectedItem].id); // update money ! m_money -= m_amountItems * shopInventory[selectedItem].price; |