hedgewars/uStore.pas
changeset 6515 74a04089bb56
parent 6492 71db3c0daa0a
child 6580 6155187bf599
--- a/hedgewars/uStore.pas	Wed Dec 07 17:55:23 2011 +0400
+++ b/hedgewars/uStore.pas	Wed Dec 07 11:35:03 2011 -0500
@@ -199,7 +199,7 @@
                     if Hat <> 'NoHat' then
                         begin
                         if (Length(Hat) > 39) and (Copy(Hat,1,8) = 'Reserved') and (Copy(Hat,9,32) = PlayerHash) then
-                            LoadHedgehogHat(Gear, 'Reserved/' + Copy(Hat,9,Length(s)-8))
+                            LoadHedgehogHat(Gear, 'Reserved/' + Copy(Hat,9,Length(Hat)-8))
                         else
                             LoadHedgehogHat(Gear, Hat);
                         end