From 6b1f1164d20b85654de68bc3b90a6a0b55754e42 Mon Sep 17 00:00:00 2001 From: altalk23 Date: Fri, 24 Jun 2022 19:26:51 +0300 Subject: [PATCH] fix item values and helper group ids --- bindings/GeometryDash.bro | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bindings/GeometryDash.bro b/bindings/GeometryDash.bro index 4d61eeb2..650bf3b1 100644 --- a/bindings/GeometryDash.bro +++ b/bindings/GeometryDash.bro @@ -1907,7 +1907,7 @@ class GJEffectManager : cocos2d::CCNode { std::array m_pulseExistsForGroup; bool m_f063c; std::array m_opactiyExistsForGroup; - std::array m_itemValues; + std::array m_itemValues; int m_unusued; int* m_unused2; cocos2d::CCArray* m_f1bc8; @@ -2820,7 +2820,7 @@ class GameObject : CCSpritePlus { return m_uniqueID; } short getGroupID(int ix) { - return m_groups[ix]; + return m_groups->operator[](ix); } short getGroupIDCount() { return m_groupCount; @@ -2828,9 +2828,9 @@ class GameObject : CCSpritePlus { gd::vector getGroupIDs() { std::vector res; - if (m_groups && m_groups[0]) + if (m_groups && m_groups->operator[](0)) for (auto i = 0; i < m_groupCount; i++) - res.push_back(m_groups[i]); + res.push_back(m_groups->operator[](i)); return res; }