diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-30 02:05:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-01 03:11:26 +0300 |
commit | a39f63cdfa5ce15b22f294a8bb1db3a036ce462d (patch) | |
tree | 4de71bde947cae0cf5d3196cd97e82f5bc537c5c /src/net/manaserv | |
parent | 02ec4369acfbf261236631e20dbb76131e7889f8 (diff) | |
download | plus-a39f63cdfa5ce15b22f294a8bb1db3a036ce462d.tar.gz plus-a39f63cdfa5ce15b22f294a8bb1db3a036ce462d.tar.bz2 plus-a39f63cdfa5ce15b22f294a8bb1db3a036ce462d.tar.xz plus-a39f63cdfa5ce15b22f294a8bb1db3a036ce462d.zip |
One part of fixes after auto checking.
Diffstat (limited to 'src/net/manaserv')
-rw-r--r-- | src/net/manaserv/attributes.cpp | 5 | ||||
-rw-r--r-- | src/net/manaserv/buysellhandler.cpp | 2 | ||||
-rw-r--r-- | src/net/manaserv/inventoryhandler.h | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/src/net/manaserv/attributes.cpp b/src/net/manaserv/attributes.cpp index 9d1e159ff..eb0f72dc5 100644 --- a/src/net/manaserv/attributes.cpp +++ b/src/net/manaserv/attributes.cpp @@ -350,8 +350,9 @@ namespace Attributes continue; } } - logger->log("Found %d tags for %d attributes.", int(tags.size()), - int(attributes.size())); + logger->log("Found %d tags for %d attributes.", + static_cast<int>(tags.size()), + static_casr<int>(attributes.size())); fillLabels(); diff --git a/src/net/manaserv/buysellhandler.cpp b/src/net/manaserv/buysellhandler.cpp index 25db86cf0..e9be139f6 100644 --- a/src/net/manaserv/buysellhandler.cpp +++ b/src/net/manaserv/buysellhandler.cpp @@ -97,7 +97,7 @@ void BuySellHandler::handleMessage(Net::MessageIn &msg) int itemId = msg.readInt16(); int amount = msg.readInt16(); int value = msg.readInt16(); - dialog->addItem(new Item(itemId, amount, 1, false), value); + dialog->addItem(new Item(itemId, amount, 0, 1, false), value); } break; } diff --git a/src/net/manaserv/inventoryhandler.h b/src/net/manaserv/inventoryhandler.h index 88bb0510d..0241bcc7f 100644 --- a/src/net/manaserv/inventoryhandler.h +++ b/src/net/manaserv/inventoryhandler.h @@ -36,7 +36,7 @@ class EquipBackend : public Equipment::Backend { public: EquipBackend() - { memset(mEquipment, 0, sizeof(*mEquipment); } + { memset(mEquipment, 0, sizeof(*mEquipment)); } Item *getEquipment(int index) const { return mEquipment[index]; } |