diff options
author | smatz <smatz@openttd.org> | 2009-09-21 19:40:05 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-09-21 19:40:05 +0000 |
commit | 0a6e3364841c6676a192ea9a349e28bb6d360a28 (patch) | |
tree | 49f129be43029f453d4c58aee39d84abdfa9bd2a /src | |
parent | 01ab1c60011eb1b9cef03fac73da4b71410f1460 (diff) | |
download | openttd-0a6e3364841c6676a192ea9a349e28bb6d360a28.tar.xz |
(svn r17607) -Fix: when command didn't fail in test run and failed in exec run, error message wasn't set. Affects only few commands
Diffstat (limited to 'src')
-rw-r--r-- | src/command.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.cpp b/src/command.cpp index f44395662..8782763e0 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -613,7 +613,7 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallbac assert(res.GetCost() == res2.GetCost() && CmdFailed(res) == CmdFailed(res2)); // sanity check } else { if (CmdFailed(res2)) { - res.SetGlobalErrorMessage(); + res2.SetGlobalErrorMessage(); goto show_error; } } |