Hats webpage: Fix "other hats" section listing wrong hats
authorWuzzy <Wuzzy2@mail.ru>
Sat, 16 May 2020 03:41:49 +0200
changeset 15588 909ef1f3ef19
parent 15587 ff58b2a18d85
child 15589 f22ebcd9f3fc
Hats webpage: Fix "other hats" section listing wrong hats
misc/hats_js_anim.xhtml
--- a/misc/hats_js_anim.xhtml	Sat May 16 03:30:51 2020 +0200
+++ b/misc/hats_js_anim.xhtml	Sat May 16 03:41:49 2020 +0200
@@ -233,10 +233,10 @@
                 continue;
             var link = document.createElement("a");
             if (IS_LOCAL)
-                link.href = "../share/hedgewars/Data/Graphics/Hats/"+masks[i]+".png";
+                link.href = "../share/hedgewars/Data/Graphics/Hats/"+missingMasks[i]+".png";
             else
-                link.href = "//hg.hedgewars.org/hedgewars/raw-file/tip/share/hedgewars/Data/Graphics/Hats/"+masks[i]+".png";
-            link.appendChild(document.createTextNode(masks[i]));
+                link.href = "//hg.hedgewars.org/hedgewars/raw-file/tip/share/hedgewars/Data/Graphics/Hats/"+missingMasks[i]+".png";
+            link.appendChild(document.createTextNode(missingMasks[i]));
             pm.appendChild(link);
             if (i < missingMasks.length -1)
                 pm.appendChild(document.createTextNode(", "));