Author: jhinrichs
Date: Sun Apr 15 22:31:25 2007
New Revision: 16855

URL: http://svn.gna.org/viewcvs/wesnoth?rev=16855&view=rev
Log:
Fixes the negative gold bug (8885) for the 1.2 branch

Modified:
    branches/1.2/src/config_adapter.cpp

Modified: branches/1.2/src/config_adapter.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.2/src/config_adapter.cpp?rev=16855&r1=16854&r2=16855&view=diff
==============================================================================
--- branches/1.2/src/config_adapter.cpp (original)
+++ branches/1.2/src/config_adapter.cpp Sun Apr 15 22:31:25 2007
@@ -63,7 +63,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