Fix capacity clobber.

refs:4458c8b2edece39175bda25ecf8ac84c2633feca
master
vexed 2013-11-14 22:26:19 -05:00
parent c142724c2a
commit fdc3b7d4cb
1 changed files with 1 additions and 1 deletions

View File

@ -487,7 +487,7 @@ void fillTemplateList(std::vector<DROID_TEMPLATE *> &pList, STRUCTURE *psFactory
pList.clear();
DROID_TEMPLATE *psCurr;
BODY_SIZE iCapacity = (BODY_SIZE)psFactory->pFunctionality->factory.capacity;
BODY_SIZE iCapacity = (BODY_SIZE)psFactory->capacity;
/* Add the templates to the list*/
for (std::list<DROID_TEMPLATE>::iterator i = localTemplates.begin(); i != localTemplates.end(); ++i)