go2starr / CS-638-BWAPI

Starcraft: Broodwar AI bot
GNU Lesser General Public License v3.0
9 stars 7 forks source link

Crash in Strategizer::redistributeAgents() #1

Closed bploeckelman closed 12 years ago

bploeckelman commented 12 years ago

Happening in every match after around 13 marines and 3 firebats have been built, always traces back to Strategizer.cpp line 291 : m->addAgent(*a);

It seems like the Manager* m might be invalid, the Agent* a points to a medic (probably the first medic being built)

Update - fixed in commit: 5e72861e63757eda31ba92164b5335701019730f

bploeckelman commented 12 years ago

Looks like MedicAgent's weren't being added to a Manager.

Added to Strategizer.cpp line 235: // Medic -> CombatManager else if (ut == UnitTypes::Terran_Medic) agentManagerMap[a] = &combatManager;

This seems to have resolved it.