Set tools actual/target to 0 if they dont exist.

This commit is contained in:
Shawn Bruce 2017-10-26 13:12:38 -04:00
parent 4b5eff5ec6
commit b2552795dc

View file

@ -210,6 +210,9 @@ $(function() {
if (lastData.hasOwnProperty("tool" + i)) {
tools[i]["actual"](lastData["tool" + i].actual);
tools[i]["target"](lastData["tool" + i].target);
} else {
tools[i]["actual"](0);
tools[i]["target"](0);
}
}