瀏覽代碼

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

jianfeng1.wang 2 年之前
父節點
當前提交
fac9082df0
共有 1 個文件被更改,包括 3 次插入0 次删除
  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();
 	}