소스 검색

修复加载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();
 	}