VertexDecoder: Fix a typo #1

This commit is contained in:
raven02 2013-07-29 16:40:57 +08:00
parent 36c71c6de7
commit cd28c846eb

View File

@ -41,7 +41,7 @@ void PrintDecodedVertex(VertexReader &vtx) {
vtx.ReadColor0(col0);
printf("C0: %f %f %f %f\n", col0[0], col0[1], col0[2], col0[3]);
}
if (vtx.hasColor0()) {
if (vtx.hasColor1()) {
float col1[3];
vtx.ReadColor1(col1);
printf("C1: %f %f %f\n", col1[0], col1[1], col1[2]);
@ -860,4 +860,4 @@ int VertexDecoder::ToString(char *output) const {
output += sprintf(output, " (size: %i)", VertexSize());
return output - start;
}
}