diff --git a/src/template.cpp b/src/template.cpp index 66e6507c8..a68cfb42d 100644 --- a/src/template.cpp +++ b/src/template.cpp @@ -487,7 +487,7 @@ void fillTemplateList(std::vector &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::iterator i = localTemplates.begin(); i != localTemplates.end(); ++i)