mirror of https://github.com/axmolengine/axmol.git
debug
This commit is contained in:
parent
5858a5ada4
commit
c165ad36a7
|
@ -36,15 +36,16 @@ CCTouchDelegate* CCTouchHandler::getDelegate(void)
|
|||
|
||||
void CCTouchHandler::setDelegate(CCTouchDelegate *pDelegate)
|
||||
{
|
||||
if (m_pDelegate)
|
||||
if (pDelegate)
|
||||
{
|
||||
pDelegate->keep();
|
||||
}
|
||||
}
|
||||
|
||||
if (m_pDelegate)
|
||||
{
|
||||
m_pDelegate->destroy();
|
||||
}
|
||||
m_pDelegate = pDelegate;
|
||||
if (m_pDelegate)
|
||||
{
|
||||
m_pDelegate->destroy();
|
||||
}
|
||||
}
|
||||
|
||||
int CCTouchHandler::getPriority(void)
|
||||
|
|
Loading…
Reference in New Issue