Fixed parts list showing parts with invalid colors.

This commit is contained in:
Leonardo Zide 2016-12-04 18:34:12 -08:00
parent 1cacf33e4b
commit dedc429685

View file

@ -367,7 +367,7 @@ void PieceInfo::GetPartsList(int DefaultColorIndex, lcPartsList& PartsList) cons
if (Model)
Model->GetPartsList(DefaultColorIndex, PartsList);
}
else
else if (DefaultColorIndex < gNumUserColors)
PartsList[this][DefaultColorIndex]++;
}