From c65a2799c936858bbfc467360ce77a1ae74b6460 Mon Sep 17 00:00:00 2001 From: Tyler Trahan Date: Tue, 1 Nov 2022 08:22:23 -0600 Subject: [PATCH] Fix #10117: Decrement object burst limit after build check --- src/object_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/object_cmd.cpp b/src/object_cmd.cpp index 41278ca81d..3eced27ef6 100644 --- a/src/object_cmd.cpp +++ b/src/object_cmd.cpp @@ -408,7 +408,7 @@ CommandCost CmdBuildObjectArea(DoCommandFlag flags, TileIndex tile, TileIndex st CommandCost ret = Command::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;