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; } }