From c13223a2bf7d2f60ced5adfa051ecef520e4d784 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Fri, 15 Apr 2005 21:37:56 +0000 Subject: (svn r2206) - Regression Fix: slight typo of res2 into res, this also fixes recent bug "[ 1183396 ] Train can't find depot, it gives money in Multiplayer" --- command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'command.c') diff --git a/command.c b/command.c index 1c1908189..7fb4f4705 100644 --- a/command.c +++ b/command.c @@ -490,7 +490,7 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback, if (!notest && !((cmd & CMD_NO_TEST_IF_IN_NETWORK) && _networking)) { assert(res == res2); // sanity check } else { - if (CmdFailed(res)) { + if (CmdFailed(res2)) { if (res2 & 0xFFFF) _error_message = res2 & 0xFFFF; goto show_error; } -- cgit v1.2.3-54-g00ecf