QTfrontend/team.cpp
changeset 2833 9c2accd92cc7
parent 2747 7889a3a9724f
child 2874 3c7c2bf1ba38
--- a/QTfrontend/team.cpp	Sat Feb 20 19:54:24 2010 +0000
+++ b/QTfrontend/team.cpp	Sun Feb 21 16:28:46 2010 +0000
@@ -67,6 +67,9 @@
 	{
 		HHName[i]=strLst[i * 2 + 7];
 		HHHat[i]=strLst[i * 2 + 8];
+// Somehow claymore managed an empty hat.  Until we figure out how, this should avoid a repeat
+// Checking net teams is probably pointless, but can't hurt.
+        if (HHHat[i].length() == 0) HHHat[i] = "NoHat"; 
 	}
 }
 
@@ -129,6 +132,8 @@
 			if ((i < 0) || (i > 7)) continue;
 			str.remove(0, 2);
 			HHHat[i] = str;
+// Somehow claymore managed an empty hat.  Until we figure out how, this should avoid a repeat
+            if (HHHat[i].length() == 0) HHHat[i] = "NoHat"; 
 		} else
 		if (str.startsWith("grave "))
 		{