Fixes prop bugs due to uninitialized variables on MSVC build, refs #2033

This was SVN commit r13551.
This commit is contained in:
historic_bruno 2013-07-12 03:32:14 +00:00
parent 91effd1ad1
commit 5fb89ac6bc
2 changed files with 3 additions and 1 deletions

View File

@ -54,7 +54,7 @@ class CModel : public CModelAbstract
public:
struct Prop
{
Prop() : m_Point(0), m_Model(0), m_ObjectEntry(0), m_Hidden(false) {}
Prop() : m_minHeight(0.f), m_maxHeight(0.f), m_Point(0), m_Model(0), m_ObjectEntry(0), m_Hidden(false) {}
float m_minHeight;
float m_maxHeight;

View File

@ -55,6 +55,8 @@ public:
struct Prop
{
// constructor
Prop() : m_minHeight(0.f), m_maxHeight(0.f) {}
// name of the prop point to attach to - "Prop01", "Prop02", "Head", "LeftHand", etc ..
CStr m_PropPointName;
// name of the model file - art/actors/props/sword.xml or whatever