summaryrefslogtreecommitdiff
path: root/src/resources/iteminfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-05-07 23:51:57 +0300
committerAndrei Karas <akaras@inbox.ru>2011-05-07 23:51:57 +0300
commitcf09603b18f0158653723251445960d3bd534ea8 (patch)
treee615e3ffce56027851c4e1e69307eedbbf3d75a0 /src/resources/iteminfo.h
parent725c8a943ca6ce33a6abefe08003d619de312ddc (diff)
downloadmv-cf09603b18f0158653723251445960d3bd534ea8.tar.gz
mv-cf09603b18f0158653723251445960d3bd534ea8.tar.bz2
mv-cf09603b18f0158653723251445960d3bd534ea8.tar.xz
mv-cf09603b18f0158653723251445960d3bd534ea8.zip
Fix missing initialisations.
Diffstat (limited to 'src/resources/iteminfo.h')
-rw-r--r--src/resources/iteminfo.h8
1 files changed, 5 insertions, 3 deletions
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 <int, int> mTags;
std::map <int, ColorDB::ItemColor> *mColors;
std::string mColorList;
+ int mHitEffectId;
+ int mCriticalHitEffectId;
};
#endif