- attempt to fix Issue #150

This commit is contained in:
SoftCoder 2017-02-12 16:35:29 -08:00
parent 25ba2b9eb1
commit b1d6c73774
1 changed files with 1 additions and 1 deletions

View File

@ -2074,7 +2074,7 @@ void UnitUpdater::updateRepair(Unit *unit, int frameIndex) {
repaired = peerUnitBuilder->getCurrCommand()->getUnit();
nextToRepaired = repaired != NULL && map->isNextTo(unit, repaired);
}
else {
else if(peerUnitBuilder->getCurrCommand()->getUnitType() != NULL) {
if(SystemFlags::getSystemSettingType(SystemFlags::debugUnitCommands).enabled) SystemFlags::OutputDebug(SystemFlags::debugUnitCommands,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
Vec2i buildPos = map->findBestBuildApproach(unit, command->getPos(), peerUnitBuilder->getCurrCommand()->getUnitType());