- bugfix for new AI repair logic to properly detect damaged castle type units
This commit is contained in:
parent
700e768b0f
commit
ae9d20a6cf
|
@ -113,7 +113,7 @@ bool AiRuleRepair::test(){
|
|||
if(pt != NULL) {
|
||||
const UnitType *ut = dynamic_cast<const UnitType *>(pt);
|
||||
if( ut != NULL && ut->hasCommandClass(ccHarvest) == true &&
|
||||
ut->getStoredResourceCount() > 0) {
|
||||
u->getType()->getStoredResourceCount() > 0) {
|
||||
unitCanProduceWorker = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue