Author: jhinrichs
Date: Sun Apr 15 21:30:51 2007
New Revision: 16851

URL: http://svn.gna.org/viewcvs/wesnoth?rev=16851&view=rev
Log:
Try to fix bug #8885 (negative gold amount gets changed while save/load)

Modified:
    trunk/src/config_adapter.cpp

Modified: trunk/src/config_adapter.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/config_adapter.cpp?rev=16851&r1=16850&r2=16851&view=diff
==============================================================================
--- trunk/src/config_adapter.cpp (original)
+++ trunk/src/config_adapter.cpp Sun Apr 15 21:30:51 2007
@@ -64,7 +64,7 @@
        LOG_NG << "found gold: '" << gold << "'\n";
 
        int ngold = lexical_cast_default<int>(gold);
-       if(player != NULL && player->gold >= ngold) {
+       if ( (player != NULL && player->gold >= ngold) || snapshot) {
                ngold = player->gold;
        }
 


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

Reply via email to