Skip to content

a typo in Bool AIGroup::getMinMaxAndCenter() #3350

Open

Description

@Ui-shigure-z

Prerequisites

  • I have searched for similar issues and confirmed this is not a duplicate

Game Version

  • Command & Conquer Generals
  • Command & Conquer Generals: Zero Hour
  • Other (please specify below)

Bug Description

if (count==0) {
	id = curID;
} else {
	if (id == NO_FORMATION_ID) {
		id = NO_FORMATION_ID;
	}
}

Reproduction Steps

no need

Additional Context

No response

Activity

  1. added
    BugSomething is not working right, typically is user facing
    on Sep 23, 2026
  2. added theissue type on Sep 23, 2026
  3. Caball009 commented on Sep 23, 2026

    @Caball009

    FormationID curID = (*i)->getFormationID() ;
    if (count==0) {
    id = curID;
    } else {
    if (id == NO_FORMATION_ID) {
    id = NO_FORMATION_ID;
    }
    }

  4. Skyaero42 commented on Sep 23, 2026

    @Skyaero42

    I don't think the entire else-section is needed at all.

  5. Caball009 commented on Sep 23, 2026

    @Caball009

    I assume the idea was to do this:

     FormationID curID = (*i)->getFormationID() ; 
     if (count==0) { 
     	id = curID; 
     } else { 
     	if (curID == NO_FORMATION_ID) { // id --> curID
     		id = NO_FORMATION_ID; 
     	} 
     }
  6. added
    GenRelates to Generals
    ZHRelates to Zero Hour
    and removed
    BugSomething is not working right, typically is user facing
    ⚠️ TriageIssues requiring initial review and prioritization
    on Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GenRelates to GeneralsZHRelates to Zero Hour

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions