- bugfix, when a unit morphs we now add to stored resource count if the unit is of that type (used to only work when building, now works during a morph)

This commit is contained in:
Mark Vejvoda 2011-01-07 05:15:39 +00:00
parent 6b89e38512
commit ec467b6ac4
1 changed files with 1 additions and 0 deletions

View File

@ -1376,6 +1376,7 @@ bool Unit::morph(const MorphCommandType *mct){
computeTotalUpgrade();
map->putUnitCells(this, pos);
faction->applyDiscount(morphUnitType, mct->getDiscount());
faction->addStore(type);
faction->applyStaticProduction(morphUnitType);
return true;
}