CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: ott <[EMAIL PROTECTED]> 05/05/13 16:48:45
Modified files:
src : actions.cpp
Log message:
in evaluate_battle_stats() ensure strings is unset unless we actually
need them
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/actions.cpp.diff?tr1=1.218&tr2=1.219&r1=text&r2=text
Patches:
Index: wesnoth/src/actions.cpp
diff -u wesnoth/src/actions.cpp:1.218 wesnoth/src/actions.cpp:1.219
--- wesnoth/src/actions.cpp:1.218 Fri May 13 15:57:46 2005
+++ wesnoth/src/actions.cpp Fri May 13 16:48:44 2005
@@ -1,4 +1,4 @@
-/* $Id: actions.cpp,v 1.218 2005/05/13 15:57:46 ott Exp $ */
+/* $Id: actions.cpp,v 1.219 2005/05/13 16:48:44 ott Exp $ */
/*
Copyright (C) 2003 by David White <[EMAIL PROTECTED]>
Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -293,7 +293,9 @@
std::map<gamemap::location,unit>& units,
const gamestatus& state,
gamemap::TERRAIN attacker_terrain_override,
- battle_stats_strings *strings)
+ battle_stats_strings *strings = NULL)
+// strings != NULL if we want the Damage Calculations to be shown
+// it should otherwise be NULL to avoid diagnostics being constructed!
{
battle_stats res;