issue #85:remove the using of dynamic_cast()

This commit is contained in:
Ming 2010-08-31 09:14:08 +00:00
parent b75e19cd9e
commit 300e89d8fc
1 changed files with 1 additions and 1 deletions

View File

@ -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;