Browse Source

Fixed truncated material names

The previous Unicode library change accidentally trimmed off the last character of SIB material names.
Richard Mitton 8 năm trước cách đây
mục cha
commit
234ffc0ad6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      code/SIBImporter.cpp

+ 1 - 1
code/SIBImporter.cpp

@@ -201,7 +201,7 @@ static aiString ReadString(StreamReaderLE* stream, uint32_t numWChars)
     //ConvertUTF16toUTF8(&start, end, &dest, limit, lenientConversion);
     //*dest = '\0';
 
-    str[str.size()-1] = '\0';
+    str[str.size()] = '\0';
     // Return the final string.
     aiString result = aiString((const char *)&str[0]);
     //delete[] str;