summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-04-15 21:37:56 +0000
committerDarkvater <darkvater@openttd.org>2005-04-15 21:37:56 +0000
commit31dfae8aa200b40e32fece967409cba0966c5762 (patch)
treecf825e6d27bb67e98a3de743df5373030f1f0f67 /command.c
parent19dc0a8561803811eed7497e278998cb5dfc5f26 (diff)
downloadopenttd-31dfae8aa200b40e32fece967409cba0966c5762.tar.xz
(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"
Diffstat (limited to 'command.c')
-rw-r--r--command.c2
1 files changed, 1 insertions, 1 deletions
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;
}