mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-27 00:19:09 +00:00
Fix #10117: Decrement object burst limit after build check
This commit is contained in:
@@ -408,7 +408,7 @@ CommandCost CmdBuildObjectArea(DoCommandFlag flags, TileIndex tile, TileIndex st
|
||||
CommandCost ret = Command<CMD_BUILD_OBJECT>::Do(flags & ~DC_EXEC, t, type, view);
|
||||
|
||||
/* If we've reached the limit, stop building (or testing). */
|
||||
if (c != nullptr && --limit <= 0) break;
|
||||
if (c != nullptr && limit-- <= 0) break;
|
||||
|
||||
if (ret.Failed()) {
|
||||
last_error = ret;
|
||||
|
Reference in New Issue
Block a user