From 7e0558e0302c6d67b49619dea4426e466edbef45 Mon Sep 17 00:00:00 2001 From: matcool <26722564+matcool@users.noreply.github.com> Date: Thu, 18 Jan 2024 17:00:13 -0300 Subject: [PATCH] set CCMenuItem::m_fSizeMult to 0 by default fixes #406 --- loader/include/Geode/cocos/menu_nodes/CCMenuItem.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/loader/include/Geode/cocos/menu_nodes/CCMenuItem.h b/loader/include/Geode/cocos/menu_nodes/CCMenuItem.h index 13e03604..9b82e131 100644 --- a/loader/include/Geode/cocos/menu_nodes/CCMenuItem.h +++ b/loader/include/Geode/cocos/menu_nodes/CCMenuItem.h @@ -70,6 +70,7 @@ public: , m_pListener(NULL) , m_pfnSelector(NULL) , m_nScriptTapHandler(0) + , m_fSizeMult(0.f) {} GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCMenuItem, CCNodeRGBA) /** @@ -117,7 +118,7 @@ public: int m_nScriptTapHandler; // 2.2 additions - RT_ADD(float m_fSizeMult;) + RT_ADD(float m_fSizeMult = 0.f;) }; /** @brief An abstract class for "label" CCMenuItemLabel items