diff options
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]; } |