summaryrefslogtreecommitdiff
path: root/ai_new.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-05-06 06:56:30 +0000
committertron <tron@openttd.org>2005-05-06 06:56:30 +0000
commitd17476b058fb877484159bec0b725d1be5a6d68f (patch)
treeec6a2e5ec15ed8e58408a2c562f10913bb6382e8 /ai_new.c
parent203a84dd0b4f1fd7397052d3a645731eaeb5ebd7 (diff)
downloadopenttd-d17476b058fb877484159bec0b725d1be5a6d68f.tar.xz
(svn r2271) CMD_SET_PLAYER_FACE, CMD_SET_PLAYER_COLOR, CMD_INCREASE_LOAN, CMD_DECREASE_LOAN only make sense for the current player, so don't explicitly pass a player number
Diffstat (limited to 'ai_new.c')
-rw-r--r--ai_new.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ai_new.c b/ai_new.c
index 3ca443f32..a2317fc06 100644
--- a/ai_new.c
+++ b/ai_new.c
@@ -1191,7 +1191,7 @@ static void AiNew_State_StartVehicle(Player *p) {
static void AiNew_State_RepayMoney(Player *p) {
int i;
for (i=0;i<AI_LOAN_REPAY;i++)
- DoCommandByTile(0, _current_player, 0, DC_EXEC, CMD_DECREASE_LOAN);
+ DoCommandByTile(0, 0, 0, DC_EXEC, CMD_DECREASE_LOAN);
p->ainew.state = AI_STATE_ACTION_DONE;
}