hedgewars/uStore.pas
changeset 1294 50198e5c7f02
parent 1251 1f545d9a10ca
child 1431 21ca09524f9c
--- a/hedgewars/uStore.pas	Sun Sep 28 15:55:07 2008 +0000
+++ b/hedgewars/uStore.pas	Sun Sep 28 21:56:37 2008 +0000
@@ -156,9 +156,12 @@
 				if Gear <> nil then
 					begin
 					NameTagTex:= RenderStringTex(Name, Clan^.Color, fnt16);
-					texsurf:= LoadImage(Pathz[ptHats] + '/' + Hat, false, true, false);
-					HatTex:= Surface2Tex(texsurf);
-					SDL_FreeSurface(texsurf)
+					if Hat <> 'NoHat' then
+						begin
+						texsurf:= LoadImage(Pathz[ptHats] + '/' + Hat, false, true, false);
+						HatTex:= Surface2Tex(texsurf);
+						SDL_FreeSurface(texsurf)
+						end
 					end;
 		end;
 	end;