diff options
author | Darkvater <darkvater@openttd.org> | 2006-09-05 23:43:42 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-09-05 23:43:42 +0000 |
commit | 3fee2555433c62735640c7e99f8a777ba060e5e5 (patch) | |
tree | a8ac54e5dd4a340b2ca6f298551d019e3ebc747c /ai/default | |
parent | 80814dbb1d01f651ba7c60547dc1b52c1c209378 (diff) | |
download | openttd-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/default')
-rw-r--r-- | ai/default/default.c | 2 |
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; } } |