# HG changeset patch
# User nemo
# Date 1266769726 0
# Node ID 9c2accd92cc775a46a6c25488a83389c00dbc102
# Parent  8cb73c0e77a16377cb77ce9ad71d51add87dbeb3
Check for empty hat, somehow claymore managed this, this should be a workaround pending figuring out how he did it.

diff -r 8cb73c0e77a1 -r 9c2accd92cc7 QTfrontend/team.cpp
--- 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 "))
 		{