mirror of
https://github.com/glest/glest-source.git
synced 2025-09-29 17:09:02 +02:00
- bugfix for new AI repair logic to properly detect damaged castle type units
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user