assets/scripts.js: Fix undefined error for choices without descriptions

This commit is contained in:
Vladimir Panteleev 2019-07-28 00:30:18 +00:00
parent 4195108b0d
commit 350a2caead

View file

@ -181,7 +181,8 @@ function addChoices(r) {
index++; index++;
} }
document.getElementById("choiceCaption").innerHTML = choicePoints[r.id].description; if (r.id in choicePoints)
document.getElementById("choiceCaption").innerHTML = choicePoints[r.id].description;
} }
function momentStart(m) { function momentStart(m) {