Author: uso
Date: Wed Aug 22 01:32:16 2007
New Revision: 19712

URL: http://svn.gna.org/viewcvs/wesnoth?rev=19712&view=rev
Log:
don't assume a WML variable is always set, thanks Sapient

Modified:
    trunk/src/team.cpp

Modified: trunk/src/team.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/team.cpp?rev=19712&r1=19711&r2=19712&view=diff
==============================================================================
--- trunk/src/team.cpp (original)
+++ trunk/src/team.cpp Wed Aug 22 01:32:16 2007
@@ -101,7 +101,7 @@
        // this also handles the loading of older save files, though with wrong
        // values for the start gold in the game settings screen
        start_gold = lexical_cast_default<int>(cfg["start_gold"],
-                                              lexical_cast<int>(gold));
+                                              lexical_cast_default<int>(gold, 
0));
        income = cfg["income"];
        name = cfg["name"];
        team_name = cfg["team_name"];


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

Reply via email to