Author: mordante
Date: Sun Feb 27 16:19:47 2011
New Revision: 48662

URL: http://svn.gna.org/viewcvs/wesnoth?rev=48662&view=rev
Log:
Catch exception by reference.

Issue found by cppcheck.

Modified:
    trunk/src/ai/formula/ai.cpp

Modified: trunk/src/ai/formula/ai.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai/formula/ai.cpp?rev=48662&r1=48661&r2=48662&view=diff
==============================================================================
--- trunk/src/ai/formula/ai.cpp (original)
+++ trunk/src/ai/formula/ai.cpp Sun Feb 27 16:19:47 2011
@@ -1032,7 +1032,7 @@
                {
                        try {
                                i->second.serialize_to_string(str);
-                       } catch (type_error te) {
+                       } catch (type_error&) {
                                WRN_AI << "variable ["<< i->first <<"] is not 
serializable - it will not be persisted across savegames"<<std::endl;
                                continue;
                        }


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to