Print exceptions in CharacterCreation::spawnDialog

sceneinput
scrawl 10 years ago
parent f1b52c964a
commit dca4704b4b

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

Loading…
Cancel
Save