Author: jhinrichs
Date: Sun Apr 15 22:28:53 2007
New Revision: 16854
URL: http://svn.gna.org/viewcvs/wesnoth?rev=16854&view=rev
Log:
Finally fixes the negative gold bug.
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=16854&r1=16853&r2=16854&view=diff
==============================================================================
--- trunk/src/config_adapter.cpp (original)
+++ trunk/src/config_adapter.cpp Sun Apr 15 22:28:53 2007
@@ -64,7 +64,7 @@
LOG_NG << "found gold: '" << gold << "'\n";
int ngold = lexical_cast_default<int>(gold);
- if ( player != NULL && (player->gold >= ngold) || snapshot) {
+ if ( (player != NULL) && (player->gold >= ngold) && (!snapshot) ) {
ngold = player->gold;
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits