(svn r11625) -Codechange: add CO_* enum at some places, add includes of order.h too

This commit is contained in:
smatz
2007-12-12 14:37:35 +00:00
parent e0646af976
commit 5acc147c1c
5 changed files with 7 additions and 4 deletions

View File

@@ -983,7 +983,7 @@ void RestoreVehicleOrders(const Vehicle *v, const BackuppedOrders *bak)
/* If we had shared orders, recover that */
if (bak->clone != INVALID_VEHICLE) {
DoCommandP(0, v->index | (bak->clone << 16), 0, NULL, CMD_CLONE_ORDER);
DoCommandP(0, v->index | (bak->clone << 16), CO_SHARE, NULL, CMD_CLONE_ORDER);
} else {
/* CMD_NO_TEST_IF_IN_NETWORK is used here, because CMD_INSERT_ORDER checks if the