Changeset - r2724:ecde6cc4092e
[Not reviewed]
master
0 1 0
truelight - 19 years ago 2005-12-07 14:56:42
truelight@openttd.org
(svn r3269) -Fix: return CMD_ERROR instead of -1 if AI_DoCommandChecked fails
1 file changed with 1 insertions and 1 deletions:
ai/ai.c
1
1
0 comments (0 inline, 0 general)
ai/ai.c
Show inline comments
 
@@ -137,7 +137,7 @@ int32 AI_DoCommandChecked(uint tile, uin
 

	
 
	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));
0 comments (0 inline, 0 general)