From e3e180523e7c1e5389655215c414b3792f27a586 Mon Sep 17 00:00:00 2001 From: smatz Date: Mon, 21 Sep 2009 19:40:05 +0000 Subject: [PATCH] (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 --- src/command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command.cpp b/src/command.cpp index f443956626..8782763e0e 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; } }