1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-29 17:06:43 +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.setDetailedText(ogreError);
msgBox.exec(); msgBox.exec();
QString error = QString("Error creating Ogre::Root, the error reported was: %0").arg(ogreError); qCritical("Error creating Ogre::Root, the error reported was:\n %s", qPrintable(ogreError));
qCritical(error.toAscii());
std::exit(1); std::exit(1);
} }