Modified Ogre exception handling to get rid of a compiler warning

actorid
Pieter van der Kloet 14 years ago
parent 1b536d69f3
commit 3fb99fa4b5

@ -190,8 +190,7 @@ void GraphicsPage::setupOgre()
msgBox.setDetailedText(ogreError);
msgBox.exec();
QString error = QString("Error creating Ogre::Root, the error reported was: %0").arg(ogreError);
qCritical(error.toAscii());
qCritical("Error creating Ogre::Root, the error reported was:\n %s", qPrintable(ogreError));
std::exit(1);
}

Loading…
Cancel
Save