QTfrontend/team.cpp
changeset 443 eec37eb7f5db
parent 353 5ec611d702a0
child 468 8403d6884707
--- a/QTfrontend/team.cpp	Wed Feb 14 20:05:20 2007 +0000
+++ b/QTfrontend/team.cpp	Wed Feb 14 22:15:55 2007 +0000
@@ -50,10 +50,13 @@
   numHedgehogs(4)
 {
   // net teams are configured from QStringList
-  if(strLst.size()<10) throw HWTeamConstructException();
+  if(strLst.size()<13) throw HWTeamConstructException();
   TeamName=strLst[0];
   m_netID=strLst[1].toUInt();
-  for(int i = 0; i < 8; i++) HHName[i]=strLst[i+2];
+  Grave=strLst[2];
+  Fort=strLst[3];
+  difficulty=strLst[4].toUInt();
+  for(int i = 0; i < 8; i++) HHName[i]=strLst[i+5];
 }
 
 HWTeam::HWTeam(quint8 num) :