mirror of https://github.com/axmolengine/axmol.git
issue #85:remove the using of dynamic_cast()
This commit is contained in:
parent
b75e19cd9e
commit
300e89d8fc
|
@ -117,7 +117,7 @@ TestController::~TestController()
|
|||
void TestController::menuCallback(NSObject * pSender)
|
||||
{
|
||||
// get the userdata, it's the index of the menu item clicked
|
||||
CCMenuItem* pMenuItem = dynamic_cast<CCMenuItem *> (pSender);
|
||||
CCMenuItem* pMenuItem = (CCMenuItem *)(pSender);
|
||||
void * pUserData = pMenuItem->getUserData();
|
||||
int * nIdx = (int *) pUserData;
|
||||
|
||||
|
|
Loading…
Reference in New Issue