@ -501,7 +501,12 @@ DEFINE_ACTION(ContextSquadTemplateVariant,GRPTMPL)
if (!groupDesc)
return;
aii->registerSquadVariant( CWorkPtr::squadVariantName(), groupDesc );
FOREACH(itAIInstance, CCont<CAIInstance>, CAIS::instance().AIList())
{
CAIInstance* aiinstance = *itAIInstance;
aiinstance->registerSquadVariant( CWorkPtr::squadVariantName(), groupDesc );
}
CWorkPtr::groupDesc( groupDesc );
groupDesc->setBaseBotCount(botCount);