From 234ffc0ad6a22c590209216f4d727252e75cb0b9 Mon Sep 17 00:00:00 2001 From: Richard Mitton Date: Fri, 15 Sep 2017 12:39:58 -0700 Subject: [PATCH] Fixed truncated material names The previous Unicode library change accidentally trimmed off the last character of SIB material names. --- code/SIBImporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/SIBImporter.cpp b/code/SIBImporter.cpp index 6cd398f48..3fa66bd77 100644 --- a/code/SIBImporter.cpp +++ b/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;