mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-21 11:25:42 +01:00
(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
This commit is contained in:
parent
01ab1c6001
commit
0a6e336484
@ -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
|
assert(res.GetCost() == res2.GetCost() && CmdFailed(res) == CmdFailed(res2)); // sanity check
|
||||||
} else {
|
} else {
|
||||||
if (CmdFailed(res2)) {
|
if (CmdFailed(res2)) {
|
||||||
res.SetGlobalErrorMessage();
|
res2.SetGlobalErrorMessage();
|
||||||
goto show_error;
|
goto show_error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user