fixed saving skin with a name that already exists. Closes #1330

This commit is contained in:
oy 2015-03-22 12:54:08 +01:00
parent 939be9c949
commit d0a028ae7e

View file

@ -284,6 +284,10 @@ void CSkins::AddSkin(const char *pSkinName)
Skin.m_aUseCustomColors[PartIndex] = *ms_apUCCVariables[PartIndex];
Skin.m_aPartColors[PartIndex] = *ms_apColorVariables[PartIndex];
}
int SkinIndex = Find(pSkinName, false);
if(SkinIndex != -1)
m_aSkins[SkinIndex] = Skin;
else
m_aSkins.add(Skin);
}