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

This commit is contained in:
Shawn Bruce committed 2017-10-26 13:12:38 -04:00
1 parent 4b5eff5ec6
commit b2552795dc
1 file changed
+3
@@ -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);
}
}