mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-24 21:53:08 +00:00
Modified Ogre exception handling to get rid of a compiler warning
This commit is contained in:
parent
1b536d69f3
commit
3fb99fa4b5
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue