QTfrontend/team.cpp
changeset 1683 af34da5726aa
parent 1662 cefb9d0f816f
child 1840 4747f0232b88
--- a/QTfrontend/team.cpp	Fri Jan 16 15:36:16 2009 +0000
+++ b/QTfrontend/team.cpp	Fri Jan 16 15:43:19 2009 +0000
@@ -55,16 +55,17 @@
   m_isNetTeam(true)
 {
 	// net teams are configured from QStringList
-	if(strLst.size() < 21) throw HWTeamConstructException();
+	if(strLst.size() != 22) throw HWTeamConstructException();
 	TeamName = strLst[0];
 	Grave = strLst[1];
 	Fort = strLst[2];
 	Voicepack = strLst[3];
-	difficulty = strLst[4].toUInt();
+	Owner = strLst[4];
+	difficulty = strLst[5].toUInt();
 	for(int i = 0; i < 8; i++)
 	{
-		HHName[i]=strLst[i * 2 + 5];
-		HHHat[i]=strLst[i * 2 + 6];
+		HHName[i]=strLst[i * 2 + 6];
+		HHHat[i]=strLst[i * 2 + 7];
 	}
 }