diff options
author | truelight <truelight@openttd.org> | 2005-12-07 14:56:42 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-12-07 14:56:42 +0000 |
commit | 54cb542e1d60987c9e6730b1edbeeb7a294ef437 (patch) | |
tree | 0f6b16ea4c6e98b5649072984ba67c5d091dcb26 | |
parent | bfc8b30325530afc45a5fba637b982c3602e5782 (diff) | |
download | openttd-54cb542e1d60987c9e6730b1edbeeb7a294ef437.tar.xz |
(svn r3269) -Fix: return CMD_ERROR instead of -1 if AI_DoCommandChecked fails
-rw-r--r-- | ai/ai.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -137,7 +137,7 @@ int32 AI_DoCommandChecked(uint tile, uint32 p1, uint32 p2, uint32 flags, uint pr res = AI_DoCommand(tile, p1, p2, flags & ~DC_EXEC, procc); if (CmdFailed(res)) - return -1; + return CMD_ERROR; /* Save the command and his things, together with the unique_id */ new = malloc(sizeof(AICommand)); |