summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history_array.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NewStory/src/history_array.cpp')
-rw-r--r--plugins/NewStory/src/history_array.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp
index 5ffc175cff..b5d03d0b23 100644
--- a/plugins/NewStory/src/history_array.cpp
+++ b/plugins/NewStory/src/history_array.cpp
@@ -193,7 +193,10 @@ ItemData* HistoryArray::get(int id, ItemData::EventLoadMode mode)
if (pageNo >= pages.getCount())
return nullptr;
- return &pages[pageNo].data[id % HIST_BLOCK_SIZE];
+ auto *p = &pages[pageNo].data[id % HIST_BLOCK_SIZE];
+ if (mode != ItemData::ELM_NOTHING)
+ p->load(mode);
+ return p;
}
int HistoryArray::getCount() const