1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 21:53:51 +00:00

Modified Ogre exception handling to get rid of a compiler warning

This commit is contained in:
Pieter van der Kloet 2011-07-31 17:43:16 +02:00
parent 1b536d69f3
commit 3fb99fa4b5

View file

@ -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);
}