Skip to content
Snippets Groups Projects
Commit 0cc7c79a authored by Arkerthan's avatar Arkerthan
Browse files

Fix limb amputation selection for one limb

parent cf266da7
No related branches found
No related tags found
1 merge request!8831Fix limb amputation selection for one limb
......@@ -393,7 +393,7 @@ App.UI.surgeryPassageStructural = function(slave, cheat = false) {
allLimbs.onchange = () => {
const checked = allLimbs.checked;
limbs.forEach(l => l.checked = checked);
App.UI.DOM.replace(linkContainer, link(4));
App.UI.DOM.replace(linkContainer, link(limbs.length));
};
const checkAllBox = function() {
......@@ -436,7 +436,7 @@ App.UI.surgeryPassageStructural = function(slave, cheat = false) {
outerDiv.append(linkContainer);
/**
* @param {Number} checkedCount
* @param {number} checkedCount
* @returns {HTMLAnchorElement|HTMLSpanElement}
*/
function link(checkedCount) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment