diff options
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/inventoryhandler.cpp | 5 | ||||
-rw-r--r-- | src/net/ea/inventoryitem.h | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp index 2b2d1cc9e..b7c827a4d 100644 --- a/src/net/ea/inventoryhandler.cpp +++ b/src/net/ea/inventoryhandler.cpp @@ -266,11 +266,12 @@ void InventoryHandler::processPlayerStorageEquip(Net::MessageIn &msg) if (mDebugInventory) { - logger->log("Index: %d, ID: %d, Type: %d, Identified: %d, " + logger->log("Index: %d, ID: %d, Type: %d, Identified: %u, " "Qty: %d, Cards: %d, %d, %d, %d, Refine: %u", index, itemId, itemType, static_cast<unsigned int>(identified), amount, - cards[0], cards[1], cards[2], cards[3], refine); + cards[0], cards[1], cards[2], cards[3], + static_cast<unsigned int>(refine)); } if (serverVersion < 1 && identified > 1U) diff --git a/src/net/ea/inventoryitem.h b/src/net/ea/inventoryitem.h index f46ff48be..0f1e372ee 100644 --- a/src/net/ea/inventoryitem.h +++ b/src/net/ea/inventoryitem.h @@ -23,6 +23,14 @@ #ifndef NET_EA_INVENTORYITEM_H #define NET_EA_INVENTORYITEM_H +#if defined(__GXX_EXPERIMENTAL_CXX0X__) +#include <cstdint> +#else +#include <stdint.h> +#endif + +#include "localconsts.h" + namespace Ea { |