fix for the NaN skillpoint bug in main

This commit is contained in:
ferricles 2021-04-17 17:19:42 -07:00
parent 0412e19985
commit d287a698d1

View file

@ -580,6 +580,7 @@ function updateStats() {
let delta_total = 0; let delta_total = 0;
for (let i in skp_order) { for (let i in skp_order) {
let value = document.getElementById(skp_order[i] + "-skp").value; let value = document.getElementById(skp_order[i] + "-skp").value;
if (value === ""){value = 0; setValue(skp_order[i] + "-skp", value)}
let manual_assigned = 0; let manual_assigned = 0;
if (value.includes("+")) { if (value.includes("+")) {
let skp = value.split("+"); let skp = value.split("+");