1
0
Fork 0

Fix #10117: Decrement object burst limit after build check

pull/9931/head
Tyler Trahan 2022-11-01 08:22:23 -06:00
parent c4e655b1d4
commit c65a2799c9
1 changed files with 1 additions and 1 deletions

View File

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