From d729a12bf3fae2db888039f5f67a1d34539b4b1f Mon Sep 17 00:00:00 2001 From: dankmeme01 <42031238+dankmeme01@users.noreply.github.com> Date: Thu, 1 Aug 2024 14:05:33 +0200 Subject: [PATCH] fix order of buttons in CCMenuItemExt::createToggler --- loader/include/Geode/utils/cocos.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader/include/Geode/utils/cocos.hpp b/loader/include/Geode/utils/cocos.hpp index 8500c157..73eb1c32 100644 --- a/loader/include/Geode/utils/cocos.hpp +++ b/loader/include/Geode/utils/cocos.hpp @@ -1301,7 +1301,7 @@ namespace geode::cocos { cocos2d::CCNode* offSprite, utils::MiniFunction&& callback ) { - auto item = CCMenuItemToggler::create(onSprite, offSprite, nullptr, nullptr); + auto item = CCMenuItemToggler::create(offSprite, onSprite, nullptr, nullptr); assignCallback(item, std::forward>(callback)); return item; }