--- a/src/tree_cmd.cpp Thu Jul 17 16:38:26 2008 +0000
+++ b/src/tree_cmd.cpp Thu Jul 17 20:13:01 2008 +0000
@@ -389,7 +389,7 @@
}
}
- if (_game_mode != GM_EDITOR && IsValidPlayer(_current_player)) {
+ if (_game_mode != GM_EDITOR && IsValidPlayerID(_current_player)) {
Town *t = ClosestTownFromTile(tile, _settings_game.economy.dist_local_authority);
if (t != NULL) ChangeTownRating(t, RATING_TREE_UP_STEP, RATING_TREE_MAXIMUM);
}
@@ -532,7 +532,7 @@
{
uint num;
- if (IsValidPlayer(_current_player)) {
+ if (IsValidPlayerID(_current_player)) {
Town *t = ClosestTownFromTile(tile, _settings_game.economy.dist_local_authority);
if (t != NULL) ChangeTownRating(t, RATING_TREE_DOWN_STEP, RATING_TREE_MINIMUM);
}