Fixed copy and paste.

This commit is contained in:
leo
2014-12-15 23:55:17 +00:00
parent b20d52e2f9
commit b3d8fafeb4
12 changed files with 255 additions and 241 deletions
+16
View File
@@ -57,6 +57,22 @@ void lcLight::SaveLDraw(QTextStream& Stream) const
void lcLight::CreateName(const lcArray<lcLight*>& Lights)
{
if (m_strName[0])
{
bool Found = false;
for (int LightIdx = 0; LightIdx < Lights.GetSize(); LightIdx++)
{
if (!strcmp(Lights[LightIdx]->m_strName, m_strName))
{
Found = true;
break;
}
}
if (!Found)
return;
}
int i, max = 0;
for (int LightIdx = 0; LightIdx < Lights.GetSize(); LightIdx++)