From 7fa49d71fd0327de46688dc04a10573b0f8d1b5d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 28 Jul 2013 21:37:40 +0300 Subject: move bools in item. --- src/item.cpp | 10 +++++----- src/item.h | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/item.cpp b/src/item.cpp index 5f5b7120a..6bb6f206e 100644 --- a/src/item.cpp +++ b/src/item.cpp @@ -44,13 +44,13 @@ Item::Item(const int id, const int quantity, const int refine, mColor(0), mQuantity(quantity), mImage(nullptr), - mEquipment(equipment), - mEquipped(equipped), - mInEquipment(false), + mDescription(), + mTags(), mRefine(refine), mInvIndex(0), - mDescription(), - mTags() + mEquipment(equipment), + mEquipped(equipped), + mInEquipment(false) { setId(id, color); } diff --git a/src/item.h b/src/item.h index 4e1772d2f..d8ede3995 100644 --- a/src/item.h +++ b/src/item.h @@ -172,13 +172,13 @@ class Item protected: Image *mImage; /**< Item image. */ + std::string mDescription; + std::map mTags; + int mRefine; /**< Item refine level. */ + int mInvIndex; /**< Inventory index. */ bool mEquipment; /**< Item is equipment. */ bool mEquipped; /**< Item is equipped. */ bool mInEquipment; /**< Item is in equipment */ - int mRefine; /**< Item refine level. */ - int mInvIndex; /**< Inventory index. */ - std::string mDescription; - std::map mTags; }; #endif // ITEM_H -- cgit v1.2.3-70-g09d2