diff options
author | frosch <frosch@openttd.org> | 2009-04-15 17:37:31 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-04-15 17:37:31 +0000 |
commit | aecddf5cbe5c3e1502f8f2fb3d3ac328c09ab552 (patch) | |
tree | 4bdd82230aa10d11a2733f33c484fb1d879e1735 | |
parent | eb7414ea9ee1080cd34572a564d57da2d51655ff (diff) | |
download | openttd-aecddf5cbe5c3e1502f8f2fb3d3ac328c09ab552.tar.xz |
(svn r16063) -Fix (r13752): MOF_COND_DESTINATION was not accepted by CmdModifyOrder(). (only used by AI)
-rw-r--r-- | src/order_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index b9f1a0e4f..a1a94cd8e 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -876,7 +876,7 @@ CommandCost CmdModifyOrder(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3 break; case OT_CONDITIONAL: - if (mof != MOF_COND_VARIABLE && mof != MOF_COND_COMPARATOR && mof != MOF_COND_VALUE) return CMD_ERROR; + if (mof != MOF_COND_VARIABLE && mof != MOF_COND_COMPARATOR && mof != MOF_COND_VALUE && mof != MOF_COND_DESTINATION) return CMD_ERROR; break; default: |