Ticket #1084 (closed defect: fixed)

Opened 18 months ago

Last modified 17 months ago

qBot fails to handle not having a civ center

Reported by: gerbilOFdoom Owned by: quantumstate
Priority: Must Have Milestone: Alpha 9
Component: Core engine Keywords: qbot
Cc:

Description

On map Gallic Fields, the Romans do not have a civ center. qBot throws errors because "myCivCentres.toEntityArray()[0]" returns a null value when a civ center is not present. I added a null check, but the error popped back up when the economy portion of qBot couldn't find "accessibility" because it wasn't defined due to my null check. I read something about the game slowing down excessively when a civ center is destroyed, don't know if it has been fixed or not but this is probably the issue. Assigning to quantumstate, pretty sure he's the developer of qBot.

Change History

comment:1 Changed 17 months ago by quantumstate

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in 10987.

Note: See TracTickets for help on using tickets.