anchor.diff:        repeat
           GT := TKMGroupType(GROUP_TYPE_MIN_OFF + KaMRandom(4, 'TKMArmyManagement.RecruitSoldiers')); //Pick random from overall count
           Inc(L);
  -      until (GroupReq[GT] > 0) OR (L > 9); // Limit number of attempts to guarantee it doesn't loop forever
  +      until (GroupReq[GT] > 0) or (L > 9); // Limit number of attempts to guarantee it doesn't loop forever
   
         if (GroupReq[GT] = 0) then
           Continue; // Don't train
  
positive.code:   begin
      fAttackRequest.Active := False;
      // Check defences and comparison of strength
      DefRatio := fDefence.DefenceStatus();
      with fAttackRequest do
      begin
        // Exit if AI has NOT enough soldiers for defences in the FFA mode
  
negative.code: 
  
  //Check army food level and positioning
  procedure TKMArmyManagement.CheckGroupsState;
  var
    K: Integer;
    Group: TKMUnitGroup;
  