forked from 0ad/0ad
Fixes prop bugs due to uninitialized variables on MSVC build, refs #2033
This was SVN commit r13551.
This commit is contained in:
parent
91effd1ad1
commit
5fb89ac6bc
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user