Skip to content

Game locks up due to pathfinding not cleaning up old paths. #1827

Description

@Skyaero42

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

Game completely locks up. This happened in a recent game of Legionaire

Reproduction Steps

See attached replay. Happens around 1h:33m

Legi Defcon 6 lockup.zip

Additional Context

Initial investigation by @Mauller and @Caball009 yielded this is an issue with pathfinding not cleaned up
where during sorting in putOnSortedOpenList the game never breaks out of the following for-loop.

		// insertion sort
		PathfindCell *c, *lastCell = NULL;
		for( c = list; c; c = c->getNextOpen() )
		{
			if (c->m_info->m_totalCost > m_info->m_totalCost)
				break;

			lastCell = c;
		}

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is not working right, typically is user facingCriticalSeverity: Minor < Major < Critical < BlockerStabilityConcerns stability of the runtime

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions