Handle null npcEntityId in setRuntimeDialogue
This commit is contained in:
@@ -760,12 +760,18 @@ export class RuntimeHost {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.setRuntimeDialogue(
|
this.setRuntimeDialogue(
|
||||||
this.createRuntimeNpcDialogueState(
|
this.currentDialogue.npcEntityId === null
|
||||||
this.currentDialogue.npcEntityId,
|
? this.createRuntimeDialogueState(
|
||||||
dialogue.id,
|
dialogue.id,
|
||||||
nextLineIndex,
|
nextLineIndex,
|
||||||
this.currentDialogue.source
|
this.currentDialogue.source
|
||||||
)
|
)
|
||||||
|
: this.createRuntimeNpcDialogueState(
|
||||||
|
this.currentDialogue.npcEntityId,
|
||||||
|
dialogue.id,
|
||||||
|
nextLineIndex,
|
||||||
|
this.currentDialogue.source
|
||||||
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user