refactor: reuse local variable

This commit is contained in:
Tarocco
2020-09-24 20:04:43 -07:00
parent 386528a892
commit 9f9a21bb73

View File

@@ -1729,9 +1729,9 @@ void LLDAELoader::processJointToNodeMapping( domNode* pNode )
std::string nodeName = pNode->getName();
if (!nodeName.empty())
{
mJointsFromNode.push_front(pNode->getName());
mJointsFromNode.push_front(nodeName);
// Alias joint node SIDs to joint names for compatibility
mJointMap[pNode->getSid()] = mJointMap[pNode->getName()];
mJointMap[pNode->getSid()] = mJointMap[nodeName];
}
//2. Handle the kiddo's
processChildJoints(pNode);