Skip to content

Commit e9ae500

Browse files
committed
Update CCMenu.hpp
1 parent cd61c18 commit e9ae500

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nodes/CCMenu.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class $nodeModify(MyCCMenu, cocos2d::CCMenu) {
8989
#else
9090
auto self = reinterpret_cast<CCMenu*>(this);
9191
if (auto item = self->m_pSelectedItem) {
92-
auto realItem = typeinfo_cast<CCMenuItemSpriteExtra*>(child);
92+
auto realItem = typeinfo_cast<CCMenuItemSpriteExtra*>(item);
9393
if (!realItem) continue;
9494
if (EventCCMenuItemSpriteExtra* button = static_cast<EventCCMenuItemSpriteExtra*>(realItem)) {
9595
button->checkTouch(!button->isSelected());

0 commit comments

Comments
 (0)