diff --git a/cocos2dx/event_dispatcher/CCEventDispatcher.cpp b/cocos2dx/event_dispatcher/CCEventDispatcher.cpp index 7dafa65ab6..94eaad1014 100644 --- a/cocos2dx/event_dispatcher/CCEventDispatcher.cpp +++ b/cocos2dx/event_dispatcher/CCEventDispatcher.cpp @@ -353,7 +353,7 @@ void EventDispatcher::dispatchTouchEvent(EventTouch* event) bool isClaimed = false; std::vector::iterator removedIter; - auto touchEventListenerTouch = static_cast(item->listener); + auto touchEventListener = static_cast(item->listener); EventTouch::EventCode eventCode = event->getEventCode(); if (eventCode == EventTouch::EventCode::BEGAN)