VmaJsonWriter::ContinueString: Fixed bug with incorrect JSON generated when pUserData string contains '\' character.

This commit is contained in:
Adam Sawicki 2018-06-25 15:01:59 +02:00
parent e44c62684d
commit 3d99a1ca66

View File

@ -5103,7 +5103,7 @@ void VmaJsonWriter::ContinueString(const char* pStr)
for(size_t i = 0; i < strLen; ++i)
{
char ch = pStr[i];
if(ch == '\'')
if(ch == '\\')
{
m_SB.Add("\\\\");
}