Parcourir la source

修复加载xml未压入容器的bug。

jianfeng1.wang il y a 2 ans
Parent
commit
fac9082df0
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      TCLCommand/TCLCommand/Command.cpp

+ 3 - 0
TCLCommand/TCLCommand/Command.cpp

@@ -312,6 +312,9 @@ bool TCLCommand::ParseCommandsFromXml(std::string strFileOrString, std::vector<C
 			pAttr = pAttr->Next();
 		}
 		
+		if ( cmdparam.name.size() )
+			vtCommandParams.push_back(cmdparam);
+
 		pXmlElent = pXmlElent->NextSiblingElement();
 	}