- bugfix for latest harvest updates

This commit is contained in:
Mark Vejvoda 2013-02-12 22:37:14 +00:00
parent 646d11f143
commit fb6cff0ed1
1 changed files with 1 additions and 1 deletions

View File

@ -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()));