misc/hats_js_anim.xhtml
changeset 15566 909ef1f3ef19
parent 15565 ff58b2a18d85
child 15567 f22ebcd9f3fc
--- 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(", "));