Skip to content

Commit

Permalink
Merge pull request #131 from Daimakaicho/fix-story-tables
Browse files Browse the repository at this point in the history
fix null JournalEntry error when rolling story table
  • Loading branch information
ultrakorne authored Aug 29, 2021
2 parents 8fd92d2 + 45b6476 commit da37e23
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 da37e23

Please sign in to comment.