hedgewars/uStore.pas
changeset 10443 42dadeb6e8ae
parent 10309 e338ccbbe100
child 10510 9329dab04490
--- a/hedgewars/uStore.pas	Sat Oct 25 10:42:30 2014 -0400
+++ b/hedgewars/uStore.pas	Sat Oct 25 11:29:45 2014 -0400
@@ -364,6 +364,9 @@
     begin
     MakeCrossHairs;
     LoadGraves;
+    tmpHatSurf:= LoadDataImage(ptHats, 'Reserved/chef', ifNone);
+    ChefHatTexture:= Surface2Tex(tmpHatSurf, true);
+    freeTmpHatSurf();
     end;
     
 if not reload then
@@ -507,6 +510,7 @@
 SDL_FreeSurface(MissionIcons);
 
 // free the textures declared in uVariables
+FreeAndNilTexture(ChefHatTexture);
 FreeAndNilTexture(CrosshairTexture);
 FreeAndNilTexture(WeaponTooltipTex);
 FreeAndNilTexture(PauseTexture);