From cf09603b18f0158653723251445960d3bd534ea8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 7 May 2011 23:51:57 +0300 Subject: Fix missing initialisations. --- src/resources/iteminfo.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/resources') diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h index 01a4b5b9e..d0a577f6d 100644 --- a/src/resources/iteminfo.h +++ b/src/resources/iteminfo.h @@ -114,7 +114,9 @@ class ItemInfo mAttackAction(SpriteAction::INVALID), mAttackRange(0), mColors(0), - mColorList("") + mColorList(""), + mHitEffectId(0), + mCriticalHitEffectId(0) { } @@ -268,8 +270,6 @@ class ItemInfo const std::string replaceColors(std::string str, unsigned char color) const; - int mHitEffectId; - int mCriticalHitEffectId; protected: SpriteDisplay mDisplay; /**< Display info (like icon) */ @@ -307,6 +307,8 @@ class ItemInfo std::map mTags; std::map *mColors; std::string mColorList; + int mHitEffectId; + int mCriticalHitEffectId; }; #endif -- cgit v1.2.3-70-g09d2