made bad_alloc get trapped in main()
This commit is contained in:
parent
dcf276bbda
commit
04273adcb3
1 changed files with 2 additions and 0 deletions
|
@ -1649,6 +1649,8 @@ int main(int argc, char** argv)
|
|||
//just means the game should quit
|
||||
} catch(end_level_exception&) {
|
||||
std::cerr << "caught end_level_exception (quitting)\n";
|
||||
} catch(std::bad_alloc&) {
|
||||
std::cerr << "ran out of memory: game aborted\n";
|
||||
} /*catch(...) {
|
||||
std::cerr << "Unhandled exception. Exiting\n";
|
||||
}*/
|
||||
|
|
Loading…
Add table
Reference in a new issue