[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-cvs-commits] wesnoth/src game.cpp
From: |
David White |
Subject: |
[Wesnoth-cvs-commits] wesnoth/src game.cpp |
Date: |
Sat, 12 Feb 2005 16:42:09 -0500 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: David White <address@hidden> 05/02/12 21:42:08
Modified files:
src : game.cpp
Log message:
made bad_alloc get trapped in main()
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/game.cpp.diff?tr1=1.189&tr2=1.190&r1=text&r2=text
Patches:
Index: wesnoth/src/game.cpp
diff -u wesnoth/src/game.cpp:1.189 wesnoth/src/game.cpp:1.190
--- wesnoth/src/game.cpp:1.189 Sun Feb 6 21:31:27 2005
+++ wesnoth/src/game.cpp Sat Feb 12 21:42:06 2005
@@ -1,4 +1,4 @@
-/* $Id: game.cpp,v 1.189 2005/02/06 21:31:27 silene Exp $ */
+/* $Id: game.cpp,v 1.190 2005/02/12 21:42:06 Sirp Exp $ */
/*
Copyright (C) 2003 by David White <address@hidden>
Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -1649,6 +1649,8 @@
//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";
}*/