(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"
authorDarkvater
Fri, 15 Apr 2005 21:37:56 +0000
changeset 1702 6402cfbb9772
parent 1701 e46ac9ca353e
child 1703 7b00a76eb83d
(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
--- a/command.c	Fri Apr 15 20:23:54 2005 +0000
+++ b/command.c	Fri Apr 15 21:37:56 2005 +0000
@@ -490,7 +490,7 @@
 	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;
 		}