summaryrefslogtreecommitdiff
path: root/ai
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-09-05 23:43:42 +0000
committerDarkvater <darkvater@openttd.org>2006-09-05 23:43:42 +0000
commit3fee2555433c62735640c7e99f8a777ba060e5e5 (patch)
treea8ac54e5dd4a340b2ca6f298551d019e3ebc747c /ai
parent80814dbb1d01f651ba7c60547dc1b52c1c209378 (diff)
downloadopenttd-3fee2555433c62735640c7e99f8a777ba060e5e5.tar.xz
(svn r6407) -Fix: Check return values of DoCommand() with CmdFailed and that of DoCommandP
with a boolean type.
Diffstat (limited to 'ai')
-rw-r--r--ai/default/default.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ai/default/default.c b/ai/default/default.c
index aa1058709..acc7b8166 100644
--- a/ai/default/default.c
+++ b/ai/default/default.c
@@ -292,7 +292,7 @@ static void AiRestoreVehicleOrders(Vehicle *v, BackuppedOrders *bak)
uint i;
for (i = 0; bak->order[i].type != OT_NOTHING; i++) {
- if (CmdFailed(DoCommandP(0, v->index + (i << 16), PackOrder(&bak->order[i]), NULL, CMD_INSERT_ORDER | CMD_NO_TEST_IF_IN_NETWORK)))
+ if (!DoCommandP(0, v->index + (i << 16), PackOrder(&bak->order[i]), NULL, CMD_INSERT_ORDER | CMD_NO_TEST_IF_IN_NETWORK))
break;
}
}