From ec467b6ac4a041f6def287f6e19906ab84eba97e Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 7 Jan 2011 05:15:39 +0000 Subject: [PATCH] - 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) --- source/glest_game/type_instances/unit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/glest_game/type_instances/unit.cpp b/source/glest_game/type_instances/unit.cpp index 2ede25f3..59f9b91c 100644 --- a/source/glest_game/type_instances/unit.cpp +++ b/source/glest_game/type_instances/unit.cpp @@ -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; }