File diff r14813:2dc255bde71a → r14814:3d4abc0944bc
src/command.cpp
Show inline comments
 
@@ -416,7 +416,7 @@ CommandCost DoCommand(TileIndex tile, ui
 
		if (_docommand_recursive == 1 &&
 
				!(flags & DC_QUERY_COST) &&
 
				!(flags & DC_BANKRUPT) &&
 
				!CheckCompanyHasMoney(res)) {
 
				!CheckCompanyHasMoney(res)) { // CheckCompanyHasMoney() modifies 'res' to an error if it fails.
 
			goto error;
 
		}
 

	
 
@@ -433,7 +433,7 @@ CommandCost DoCommand(TileIndex tile, ui
 
error:
 
		res.SetGlobalErrorMessage();
 
		_docommand_recursive--;
 
		return CMD_ERROR;
 
		return res;
 
	}
 

	
 
	/* if toplevel, subtract the money. */