mirror of
https://github.com/mehotkhan/BandersnatchInteractive.git
synced 2025-07-28 09:42:55 +00:00
assets/scripts.js: Fix undefined error for choices without descriptions
This commit is contained in:
parent
4195108b0d
commit
350a2caead
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue