Changeset - r26493:38e5eba360e8
[Not reviewed]
master
0 1 0
Tyler Trahan - 19 months ago 2022-11-01 14:22:23
tyler@tylertrahan.com
Fix #10117: Decrement object burst limit after build check
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/object_cmd.cpp
Show inline comments
 
@@ -408,7 +408,7 @@ CommandCost CmdBuildObjectArea(DoCommand
 
		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;
0 comments (0 inline, 0 general)