Handle the set loop here.

This commit is contained in:
Jason Felds
2013-04-27 13:29:34 -04:00
parent af5f4be15b
commit eac4dc231d
+3 -4
View File
@@ -1073,14 +1073,13 @@ XNode* Profile::SaveGeneralDataCreateNode() const
{
XNode* pUnlocks = pGeneralDataNode->AppendChild("Unlocks");
FOREACHS_CONST( RString, m_UnlockedEntryIDs, it )
for (RString const unlockEntry : m_UnlockedEntryIDs)
{
XNode *pEntry = pUnlocks->AppendChild("UnlockEntry");
RString sUnlockEntry = it->c_str();
pEntry->AppendAttr( "UnlockEntryID", sUnlockEntry );
pEntry->AppendAttr( "UnlockEntryID", unlockEntry );
if( !UNLOCK_AUTH_STRING.GetValue().empty() )
{
RString sUnlockAuth = BinaryToHex( CRYPTMAN->GetMD5ForString(sUnlockEntry + UNLOCK_AUTH_STRING.GetValue()) );
RString sUnlockAuth = BinaryToHex( CRYPTMAN->GetMD5ForString(unlockEntry + UNLOCK_AUTH_STRING.GetValue()) );
pEntry->AppendAttr( "Auth", sUnlockAuth );
}
}