cocos2d/cocos2d-x — pull request #5890 by dumganhar (2014-03-20 09:48:15+00:00)
Title: closed #4462: Wrong logic in CCBAnimationManager::moveAnimationsFromNode...

```c++
void CCBAnimationManager::moveAnimationsFromNode(Node* fromNode, Node* to)
{
auto baseValueIter = _baseValues.find(fromNode);

if(baseValueIter != _baseValues.end())
{
_baseValues.erase(baseValueIter); // After erase baseValueIter, baseValueIter->second will be invalid.
_baseValues[toNode] = baseValueIter->second;
}

auto objIter = _objects.find(fromNode);
if (objIter != _objects.end())
{
_objects.erase(objIter); // After erase objIter, objIter->second will be invalid.
_objects[toNode] = objIter->second;
}

auto seqsIter = _nodeSequences.find(fromNode);
if (seqsIter != _nodeSequences.end())
{
_nodeSequences.erase(seqsIter); // After erase seqsIter, seqsIter->second will be invalid.
_nodeSequences[toNode] = seqsIter->second;
}
}
```