--- 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;