Code: Select all
numunit=mProc->aiCallback->GetNumUnitDefs();
unitList = new const UnitDef*[numunit];
mProc->aiCallback->GetUnitDefList(unitList);
sprintf_s(logmes, 100, "This Many Units Inited: %d %s", numunit, unitList[1]->humanName.c_str());
Log->Log(logmes);
[Sat Dec 10 22:57:40 2005] This Many Units Inited: 285 (null)
unitList[0] does the same damn thing.
It seens that everything inside of that struct is 0 to my AI. I've looked over the AAI code, and he does things basically the same way.
Can someone help me?