bug fix in EventDispatcher.

This commit is contained in:
James Chen 2013-10-23 16:28:38 +08:00
parent 9ed263056c
commit 6f9bee5b1a
1 changed files with 1 additions and 1 deletions

View File

@ -436,7 +436,7 @@ void EventDispatcher::setPriority(EventListener* listener, int fixedPriority)
auto found = std::find(fixedPriorityListeners->begin(), fixedPriorityListeners->end(), listener);
if (found != fixedPriorityListeners->end())
{
CCASSERT(listener->_node, "Can't set fixed priority with scene graph based listener.");
CCASSERT(listener->_node == nullptr, "Can't set fixed priority with scene graph based listener.");
if (listener->_fixedPriority != fixedPriority)
{