set CCMenuItem::m_fSizeMult to 0 by default

fixes #406
This commit is contained in:
matcool 2024-01-18 17:00:13 -03:00
parent 98f4e7e817
commit 7e0558e030

View file

@ -70,6 +70,7 @@ public:
, m_pListener(NULL) , m_pListener(NULL)
, m_pfnSelector(NULL) , m_pfnSelector(NULL)
, m_nScriptTapHandler(0) , m_nScriptTapHandler(0)
, m_fSizeMult(0.f)
{} {}
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCMenuItem, CCNodeRGBA) GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCMenuItem, CCNodeRGBA)
/** /**
@ -117,7 +118,7 @@ public:
int m_nScriptTapHandler; int m_nScriptTapHandler;
// 2.2 additions // 2.2 additions
RT_ADD(float m_fSizeMult;) RT_ADD(float m_fSizeMult = 0.f;)
}; };
/** @brief An abstract class for "label" CCMenuItemLabel items /** @brief An abstract class for "label" CCMenuItemLabel items