Fixed a CCMenu bug that prevented the touch priority from being set to the value specified by a call to CCMenu::setTouchPriority(int).

This commit is contained in:
Ed Bartley 2013-01-23 14:00:23 -05:00
parent d28a29ab98
commit 908035bdee
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ void CCMenu::setHandlerPriority(int newPriority)
void CCMenu::registerWithTouchDispatcher()
{
CCDirector* pDirector = CCDirector::sharedDirector();
pDirector->getTouchDispatcher()->addTargetedDelegate(this, kCCMenuHandlerPriority, true);
pDirector->getTouchDispatcher()->addTargetedDelegate(this, this->getTouchPriority(), true);
}
bool CCMenu::ccTouchBegan(CCTouch* touch, CCEvent* event)