- bugfix for latest harvest updates
This commit is contained in:
parent
646d11f143
commit
fb6cff0ed1
|
@ -1009,7 +1009,7 @@ void UnitUpdater::updateHarvest(Unit *unit, int frameIndex) {
|
|||
//if not working
|
||||
if(unit->getLoadCount() == 0 ||
|
||||
(forceReturnToStore == false && unit->getLoadType() != NULL &&
|
||||
harvestResource != NULL &&
|
||||
harvestResource != NULL && (unit->getLoadCount() < hct->getMaxLoad()) &&
|
||||
harvestResource->getType() != NULL && unit->getLoadType() == harvestResource->getType())) {
|
||||
//if not loaded go for resources
|
||||
SurfaceCell *sc = map->getSurfaceCell(Map::toSurfCoords(command->getPos()));
|
||||
|
|
Loading…
Reference in New Issue