Forráskód Böngészése

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

jianfeng1.wang 2 éve
szülő
commit
fac9082df0
1 módosított fájl, 3 hozzáadás és 0 törlés
  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();
 	}