simplify previous commit do/while -> while

This commit is contained in:
Erwin Coumans 2019-05-30 10:30:08 -07:00
parent 7a7652fd43
commit 6b9b30786f

View File

@ -1458,13 +1458,9 @@ bool BulletMJCFImporter::loadMJCF(const char* fileName, MJCFErrorLogger* logger,
char destBuffer[8192];
char* line = 0;
do
while (m_data->m_fileIO->readLine(fileId, destBuffer, 8192))
{
line = m_data->m_fileIO->readLine(fileId, destBuffer, 8192);
if (line)
{
xml_string += (std::string(destBuffer) + "\n");
}
xml_string += (std::string(destBuffer) + "\n");
}
while (line);
m_data->m_fileIO->fileClose(fileId);