Author: jhinrichs
Date: Sun Apr 15 21:55:33 2007
New Revision: 16852
URL: http://svn.gna.org/viewcvs/wesnoth?rev=16852&view=rev
Log:
Next try to fix 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=16852&r1=16851&r2=16852&view=diff
==============================================================================
--- trunk/src/config_adapter.cpp (original)
+++ trunk/src/config_adapter.cpp Sun Apr 15 21:55:33 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