Print exceptions in CharacterCreation::spawnDialog

This commit is contained in:
scrawl 2015-07-13 18:40:05 +02:00
parent f1b52c964a
commit dca4704b4b

View File

@ -131,6 +131,8 @@ namespace MWGui
}
void CharacterCreation::spawnDialog(const char id)
{
try
{
switch (id)
{
@ -262,6 +264,11 @@ namespace MWGui
break;
}
}
catch (std::exception& e)
{
std::cerr << "Failed to create chargen window: " << e.what() << std::endl;
}
}
void CharacterCreation::onReviewDialogDone(WindowBase* parWindow)
{