Skip to content

Commit

Permalink
fix null JournalEntry error when rolling story table
Browse files Browse the repository at this point in the history
  • Loading branch information
Daimakaicho committed Aug 25, 2021
1 parent ae60e2b commit 45b6476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/story/story-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class StoryBuilder {
for (const entry of draw.results) {
/** entity type 2 is when an entity in the world is linked */
if (entry.data.type === 1 && entry.data.collection === 'JournalEntry') {
const storyJournal = game.journal.get(entry.resultId)
const storyJournal = game.journal.get(entry.data.resultId)
if (storyJournal) {
journalContent = storyJournal.data.content
} else {
Expand Down

0 comments on commit 45b6476

Please sign in to comment.