Bug in CCMenu

Hi,
I’ve found a bug in CCMenu. I’m animating my buttons to move and when clicking them while moving it crashes.

I’ve made the following fix:

// Added line is: "m_pSelectedItem != NULL"

void CCMenuFixed::onExit()
{
    if (m_eState == kCCMenuStateTrackingTouch && m_pSelectedItem != NULL)
    {
        m_pSelectedItem->unselected();
        m_eState = kCCMenuStateWaiting;
        m_pSelectedItem = NULL;
    }

    CCLayer::onExit();
}

Oren Bengigi wrote:

Hi,
I’ve found a bug in CCMenu. I’m animating my buttons to move and when clicking them while moving it crashes.
>
I’ve made the following fix:
>
[…]

Hello~I wonder that how to code in order to make my Keyboard event works on cocos2d-x-win8! Can you tell me?

http://cocos2d-x.org/boards/6/topics/17873