This commit is contained in:
ebolam
2022-12-14 19:08:52 -05:00
parent 8dba339155
commit 00a4028010

View File

@@ -783,7 +783,9 @@ function var_changed(data) {
if ((data.classname == 'actions') && (data.name == 'Action Count')) {
current_action = data.value;
document.getElementsByClassName("action_image")[0].setAttribute("chunk", data.value);
if (document.getElementsByClassName("action_image")[0]) {
document.getElementsByClassName("action_image")[0].setAttribute("chunk", data.value);
}
if (current_action <= 0) {
//console.log("setting action_count to "+current_action);
const storyPrompt = $el("#story_prompt");