Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Cpk0521 committed May 10, 2023
1 parent 816bdc6 commit ef4c642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/TextManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class TextManager {
if (textFrame == "off") { return; }
}

this._thisWaitTime = isFastForward ? 50 : text.length * 300 + 500;
this._thisWaitTime = isFastForward ? 50 : (text?.length || 1) * 300 + 500;

if (!this._txtFrameMap.has(textFrame)) {
this._txtFrameMap.set(textFrame, new PIXI.Sprite(this._loader.resources[`textFrame${textFrame}`].texture));
Expand Down

0 comments on commit ef4c642

Please sign in to comment.